-
-
Notifications
You must be signed in to change notification settings - Fork 486
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
False positive for no-unused-vars #4888
Comments
I think there's a bug in the code handling ignoreRestSiblings. Just to confirm, you did set this option to |
Yes, it is active, with the following additional configuration:
|
@florianwittmann can you please show me the command you're using to run oxlint? |
) Add test cases that cover #4888. I can't reproduce the issue this way, so I'll try running oxlint as a CLI instead. These test cases will be useful to have in our repo anyways.
I am unable to reproduce this issue, please provide any additional setup/command arguments/etc you used so I can debug it. |
Found the problem, it was referencing the wrong config file the hole time 🤦 Sorry, everything seems to work as intended, when configured correctly. |
In the following case text in the first line is found by no-unused-vars, but not found by the original eslint rule:
Here we want to get entry without text and this seems to be one legit way to do this, hence text is not unused. This was tested with version 0.7.1.
The text was updated successfully, but these errors were encountered: