-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Unused var error missing when using es6 modules #2678
Comments
What version of eslint are you using? |
The latest :)
|
Why is this a bug? |
Oh I see, it's missing Are you using Babel-eslint? |
Nah, I'm just using |
Thanks. We should double check that escope is doing the right thing here. |
Fix: Check unused vars in exported functions (fixes #2678)
this code still yields no errors.
Expected output is to get a |
@yangit Could you open a new issues? |
Done #4047 |
It appears that when you use ES6 modules to
export
a function, theno-unused-var
rule does not run properly on those function arguments. (vars declared in the function body still lint correctly)Given the following config:
When I run this in the CLI:
Notice that
fn1
gets linted correctly, butfn2
does not report the unusedy
var.The text was updated successfully, but these errors were encountered: