8000 Rule Change: no-restricted-globals should detect restricted globals accessed via global object · Issue #19804 · eslint/eslint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Rule Change: no-restricted-globals should detect restricted globals accessed via global object #19804
Open
@sethamus

Description

@sethamus

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

acceptedThere is consensus among the team that this change meets the criteria for inclusionenhancementThis change enhances an existing feature of ESLintruleRelates to ESLint's core rules

Type

No type

Projects

Status

Ready to Implement

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0