[no-unused-vars] implement destructuredArrayIgnorePattern from eslint 8.11 #4691
Closed
3 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
eslint added a super useful option to the no-unused-vars rule in version 8.11.0,
destructuredArrayIgnorePattern
.https://eslint.org/docs/rules/no-unused-vars#destructuredarrayignorepattern
Trying to use this option with typescript-eslint causes eslint to fail because the option is not found.
Here is the PR on the eslint repository related to this feature: eslint/eslint#15649 (there's already discussion on that page about the option not working with this package)
Repro
use the rule
with @typescript-eslint/eslint-plugin active. eslint will fail.
Expected Result
eslint should be able to use the destructuredArrayIgnorePattern with @typescript-eslint/eslint-plugin active
Actual Result
eslint fails with the error:
Versions
@typescript-eslint/eslint-plugin
5.15.0
@typescript-eslint/parser
5.15.0
TypeScript
4.0.3
ESLint
8.11.0
node
16.13.0
The text was updated successfully, but these errors were encountered: