[@typescript-eslint/no-unused-vars] Use config of ESLint built-in "no-unused-vars" rule when no config exists for typescript counterpart #268
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
In our
.eslintrc.js
we use the configuration of'airbnb-base'
that enables and configures the ESLint built-in rules of "camelcase", "indent", "no-array-constructor" and "no-unused-vars".To ensure that we don't get double rule violations (on for the ESLint build-in and the TypeScript counterpart),
we deliberately place
'plugin:@typescript-eslint/recommended'
after'airbnb-base'
:Problem with this approach is that
@typescript-eslint/eslint-plugin
will use a different configuration as the for the ESLint built-in rules of "camelcase", "indent", "no-array-constructor" and "no-unused-vars".So I was wondering if it wouldn't be possible that
@typescript-eslint/eslint-plugin
uses the configuration of ESLint built-in rules in case no explicit configuration exists for the TypeScript counterparts.Right now, we had to work around the problem by explicitlty
require
-ing the rules of the "eslint-config-airbnb-base" module and then re-configure them using the imported rule config:The text was updated successfully, but these errors were encountered: