Skip to content

Commit

Permalink
fix: turn off typescript 'no-undef' rule per docs (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrkhanAlikhanov committed May 26, 2021
1 parent acfcbf0 commit ddb552b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/eslint-config-typescript/index.js
Expand Up @@ -10,6 +10,9 @@ module.exports = {
'@typescript-eslint/no-unused-vars': ['error', { args: 'all', argsIgnorePattern: '^_' }],
// Per the docs, the root no-unused-vars should be disabled:
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
'no-unused-vars': 'off'
'no-unused-vars': 'off',

// 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
'no-undef': 'off'
}
}

0 comments on commit ddb552b

Please sign in to comment.