lint/correctness/noUnusedVariables: Allow adding ignore pattern #6381
kubijo
started this conversation in
Rule suggestion
Replies: 2 comments 4 replies
-
|
You could declare the variable in the |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Adding my interest. This is possible in ESLint and I have a use-case for this (auto-loading of files through dynamic import which are then registered into a DI-like structure) where I would like to allow exceptions for certain class suffixes. I am down to make a PR if greenlit! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Our translation system requires having an
intlobject either inthis.props.intlor in scope. This often leads to unused variables, but it would be an error not to have it there… because the generated code would be missing the API it needs.Usually, this is an easy fix with tools like eslint by adding this variable name to patterns ignored by the lint.
Beta Was this translation helpful? Give feedback.
All reactions