Skip to content

Commit 4116ac8

Browse files
authored
fix: disable no-undef as recommended (#51)
1 parent d68c7dc commit 4116ac8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ module.exports = {
3232
// The core 'no-unused-vars' rules (in the eslint:recommeded ruleset)
3333
// does not work with type definitions
3434
'no-unused-vars': 'off',
35+
// TS already checks for that, and Typescript-Eslint recommends to disable it
36+
// https://typescript-eslint.io/linting/troubleshooting#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
37+
'no-undef': 'off',
3538
'@typescript-eslint/no-unused-vars': 'warn'
3639
}
3740
}

0 commit comments

Comments
 (0)