Skip to content

Enhancement: [no-unused-vars] support reportUsedIgnorePattern #9616

@g1thuser

Description

@g1thuser

Before You File a Proposal Please Confirm You Have Done The Following...

My proposal is suitable for this project

  • I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).

Link to the rule's documentation

https://typescript-eslint.io/rules/no-unused-vars#options

Description

The rule should support all options of the base rule like mentioned in the documentation.

Fail

https://eslint.org/play#eyJvcHRpb25zIjp7InBhcnNlck9wdGlvbnMiOnsic291cmNlVHlwZSI6Im1vZHVsZSJ9fSwidGV4dCI6Ii8qZXNsaW50IG5vLXVudXNlZC12YXJzOiBbXCJlcnJvclwiLCB7IFwicmVwb3J0VXNlZElnbm9yZVBhdHRlcm5cIjogdHJ1ZSwgXCJ2YXJzSWdub3JlUGF0dGVyblwiOiBcIltpSV1nbm9yZWRcIiB9XSovXG5cbnZhciBmaXJzdFZhcklnbm9yZWQgPSAxO1xudmFyIHNlY29uZFZhciA9IDI7XG5jb25zb2xlLmxvZyhmaXJzdFZhcklnbm9yZWQsIHNlY29uZFZhcik7In0=

Pass

https://eslint.org/play#eyJvcHRpb25zIjp7InBhcnNlck9wdGlvbnMiOnsic291cmNlVHlwZSI6Im1vZHVsZSJ9fSwidGV4dCI6Ii8qZXNsaW50IG5vLXVudXNlZC12YXJzOiBbXCJlcnJvclwiLCB7IFwicmVwb3J0VXNlZElnbm9yZVBhdHRlcm5cIjogdHJ1ZSwgXCJ2YXJzSWdub3JlUGF0dGVyblwiOiBcIltpSV1nbm9yZWRcIiB9XSovXG5cbnZhciBmaXJzdFZhciA9IDE7XG52YXIgc2Vjb25kVmFyID0gMjtcbmNvbnNvbGUubG9nKGZpcnN0VmFyLCBzZWNvbmRWYXIpOyJ9

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsenhancement: plugin rule optionNew rule option for an existing eslint-plugin rulelocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions