-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bug: [no-unused-vars] varsIgnorePattern is broken on v8 beta #9383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Realizing now that this works with |
@ottomated This was a helpful detail! This does seem wrong; I should think the description for a caught variable would say something like "caught variables" instead of "args" to distinguish it from caught variables (and avoid this very confusion). Note that this same behavior currently exists in the base rule: And in our fork: typescript-eslint/packages/eslint-plugin/src/rules/no-unused-vars.ts Lines 352 to 357 in ab2916c
So, maybe this should be reported in eslint first/instead/as well? Interested what @bradzacher thinks is best here. |
But yes - this is likely a bug upstream as the label is wrong. We can sync it as part of the above PRs. |
Actually, looking closer, it is not just that the label is wrong - the conditions in that |
Ah! But they're fixed in #9324 🎉 So the main bug being reported here will indeed already be solved once the PRs Brad mentioned get merged 🙂
Only applies to the labelling as "arg" instead of "caught error" now. |
Sounds like this is a dup that will be fixed by existing issues -> PRs. Great! Thanks all! |
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
CodeSandbox (your playground does not support v8)
Repro Code
ESLint Config
tsconfig
No response
Expected Result
I expect no errors or warnings to be printed.
Actual Result
Additional Info
Using version
8.0.0-alpha.30
with eslint9.5.0
.The text was updated successfully, but these errors were encountered: