Enhancement: [no-unused-vars] Support for ignoreClassWithStaticInitBlock
and reportUsedIgnorePattern
Options
#9120
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
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Milestone
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
ESLint 9 added new options to their
no-unused-vars
rule:reportUsedIgnorePattern
- Will indicate a problem if an item matches its ignore pattern, but is actually being usedignoreClassWithStaticInitBlock
- Ignores classes with items in static initialization blocks that would normally be marked as unusedSee
no-unused-vars
for more info.These options don't appear to be implemented in typescript-eslint's
no-unused-vars
extension rule.Expected Outcome
I would expect
index.ts
in the reproduction repo to be linted and throw the linting errors seen in this ESLint Playground Link. This uses the same code as in the reproduction repo.Actual Outcome
An error is thrown by typescript-eslint, because these options are not recognized / implemented in the extension rule:
Reproduction Repository Link
https://github.com/bachmacintosh/tseslint-no-unused-vars
Repro Steps
npm install
npm run lint
Versions
typescript-eslint
8.0.0-alpha.14
TypeScript
5.4.5
ESLint
9.3.0
node
20.12.2
The text was updated successfully, but these errors were encountered: