no-unused-vars
false negative with comma operator
#14866
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
repro:yes
Projects
Tell us about your environment
What parser (default,
@babel/eslint-parser
,@typescript-eslint/parser
, etc.) are you using?Default
Please show your full configuration:
Configuration
/*eslint no-unused-vars: "error"*/
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
no-unused-vars
should report allx
,y
, andz
as unused variables.What actually happened? Please copy-paste the actual, raw output from ESLint.
no-unused-vars
is reporting onlyx
andy
as unused variables.Steps to reproduce this issue:
Online Demo
We probably missed addressing this case in #14325
Are you willing to submit a pull request to fix this bug?
Yes
The text was updated successfully, but these errors were encountered: