-
-
Notifications
You must be signed in to change notification settings - Fork 221
Closed
Labels
Description
Which packages would you like to change?
-
espree -
eslint-scope -
eslint-visitor-keys
What problem do you want to solve?
Split off from: eslint/eslint#19695 (comment)
Right now, implicit globals aren't actually treated as globals. Instead, they're treated as unresolved. Example:
function test() {
implicitGlobal = 123; // creates an implicit global in JS, unresolved in eslint-scope
implicitGlobal; // no relationship to implicitGlobal in the previous line in eslint-scope
}That means we aren't able to track implicit globals like we do explicit globals.
What do you think is the correct solution?
We should consider whether assignment to an implicit global should create a global variable declaration in eslint-scope.
Participation
- I am willing to submit a pull request for this change.
Additional comments
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Complete