Skip to content

linter: support of ignoreUsingDeclarations option in no-unused-vars #14628

@fabon-f

Description

@fabon-f

no-unused-vars rule of ESLint (and typescript-eslint) supports ignoreUsingDeclarations option for Explicit Resource Management, which suppress errors for "unused" variable with using declaration (the variable is implicitly used though).

https://eslint.org/docs/latest/rules/no-unused-vars#ignoreusingdeclarations

It would great if oxlint also supports this option.

// these lines should OK with `ignoreUsingDeclarations` option
using syncResource = getSyncResource();
await using asyncResource = getAsyncResource();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions