Skip to content

Commit ddb552b

Browse files
authoredMay 26, 2021
fix: turn off typescript 'no-undef' rule per docs (#144)
1 parent acfcbf0 commit ddb552b

File tree

1 file changed

+4
-1
lines changed
  • packages/eslint-config-typescript

1 file changed

+4
-1
lines changed
 

‎packages/eslint-config-typescript/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ module.exports = {
1010
'@typescript-eslint/no-unused-vars': ['error', { args: 'all', argsIgnorePattern: '^_' }],
1111
// Per the docs, the root no-unused-vars should be disabled:
1212
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
13-
'no-unused-vars': 'off'
13+
'no-unused-vars': 'off',
14+
15+
// https://github.com/typescript-eslint/typescript-eslint/blob/1cf9243/docs/getting-started/linting/FAQ.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
16+
'no-undef': 'off'
1417
}
1518
}

0 commit comments

Comments
 (0)
Please sign in to comment.