We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
type
1 parent 7bb498d commit b42c42eCopy full SHA for b42c42e
eslint.config.js
@@ -163,11 +163,21 @@ module.exports = defineConfig([
163
],
164
"eslint-plugin/test-case-shorthand-strings": "error",
165
"no-useless-concat": "off",
166
+ "no-restricted-syntax": [
167
+ "error",
168
+ {
169
+ selector:
170
+ "ObjectExpression > Property[key.name='errors'] > ArrayExpression.value > ObjectExpression > Property[key.name='type']",
171
+ message:
172
+ "Do not use deprecated 'type' property in rule tests.",
173
+ },
174
+ ],
175
},
176
177
{
178
name: "eslint/tests",
179
files: ["tests/**/*.js"],
180
+ ignores: ["tests/lib/rules/*.js", "tests/tools/internal-rules/*.js"],
181
languageOptions: {
182
globals: {
183
...globals.mocha,
0 commit comments