-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed as not planned
Labels
works as intendedThe behavior described in this issue is working correctlyThe behavior described in this issue is working correctly
Description
Environment
https://eslint.org/play with default settings
What parser are you using?
Default (Espree)
What did you do?
/*eslint no-unused-vars: ["error", { "vars": "local" }]*/
let globalVar = "b";
function globalFunc() {
const localVar= 3;
}
What did you expect to happen?
globalVar and globalFunc shouldn't trigger errors
What actually happened?
globalVar and globalFunc trigger errors regardless of vars setting
Link to Minimal Reproducible Example
Participation
- I am willing to submit a pull request for this issue.
Additional comments
off topic but thank you for having a "I am willing to submit a pull request for this issue." checkbox! wish every project had that
Metadata
Metadata
Assignees
Labels
works as intendedThe behavior described in this issue is working correctlyThe behavior described in this issue is working correctly
Type
Projects
Status
Complete