Open
Description
What rule do you want to change?
no-restricted-globals
What change do you want to make?
Generate more warnings
How do you think the change should be implemented?
A new option
Example code
/*eslint no-restricted-globals: ["error", "Promise"]*/
const fetchData = window.Promise.resolve("data");
What does the rule currently do for this code?
The rule currently reports no errors.
What will the rule do after it's changed?
The rule will report an error for Promise
.
Participation
- I am willing to submit a pull request to implement this change.
Additional comments
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Ready to Implement