Skip to content

Commit 60640f0

Browse files
Guillaume Martignysindresorhus
authored andcommitted
Add support for the new ESLint meta.type property (#245)
1 parent 1c8ca97 commit 60640f0

25 files changed

+50
-26
lines changed

rules/assertion-arguments.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ module.exports = {
152152
docs: {
153153
url: util.getDocsUrl(__filename)
154154
},
155-
schema
155+
schema,
156+
type: 'problem'
156157
}
157158
};

rules/max-asserts.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ module.exports = {
6565
docs: {
6666
url: util.getDocsUrl(__filename)
6767
},
68-
schema
68+
schema,
69+
type: 'suggestion'
6970
}
7071
};

rules/no-async-fn-without-await.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ module.exports = {
5454
meta: {
5555
docs: {
5656
url: util.getDocsUrl(__filename)
57-
}
57+
},
58+
type: 'suggestion'
5859
}
5960
};

rules/no-cb-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = {
2626
meta: {
2727
docs: {
2828
url: util.getDocsUrl(__filename)
29-
}
29+
},
30+
type: 'suggestion'
3031
}
3132
};

rules/no-duplicate-modifiers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ module.exports = {
4848
meta: {
4949
docs: {
5050
url: util.getDocsUrl(__filename)
51-
}
51+
},
52+
type: 'problem'
5253
}
5354
};

rules/no-identical-title.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ module.exports = {
6464
meta: {
6565
docs: {
6666
url: util.getDocsUrl(__filename)
67-
}
67+
},
68+
type: 'problem'
6869
}
6970
};

rules/no-ignored-test-files.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ module.exports = {
9494
docs: {
9595
url: util.getDocsUrl(__filename)
9696
},
97-
schema
97+
schema,
98+
type: 'suggestion'
9899
}
99100
};

rules/no-import-test-files.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ module.exports = {
9696
docs: {
9797
url: util.getDocsUrl(__filename)
9898
},
99-
schema
99+
schema,
100+
type: 'suggestion'
100101
}
101102
};

rules/no-invalid-end.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module.exports = {
3030
meta: {
3131
docs: {
3232
url: util.getDocsUrl(__filename)
33-
}
33+
},
34+
type: 'problem'
3435
}
3536
};

rules/no-nested-tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ module.exports = {
3535
meta: {
3636
docs: {
3737
url: util.getDocsUrl(__filename)
38-
}
38+
},
39+
type: 'problem'
3940
}
4041
};

0 commit comments

Comments
 (0)