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.
const foo = require('foo')
1 parent d9ee76c commit 109b3f8Copy full SHA for 109b3f8
recommended.js
@@ -20,6 +20,13 @@ module.exports = {
20
'@typescript-eslint/no-explicit-any': 'off',
21
'@typescript-eslint/no-unused-vars': 'off'
22
}
23
+ },
24
+ {
25
+ files: ['*.js', '*.cjs'],
26
+ rules: {
27
+ // in plain CommonJS modules, you can't use `import foo = require('foo')` to pass this rule, so it has to be disabled
28
+ '@typescript-eslint/no-var-requires': 'off'
29
+ }
30
31
]
32
0 commit comments