Skip to content
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

Proposal: change no-redeclare default behavior #11405

Closed
mysticatea opened this issue Feb 16, 2019 · 2 comments · Fixed by #11509
Closed

Proposal: change no-redeclare default behavior #11405

mysticatea opened this issue Feb 16, 2019 · 2 comments · Fixed by #11509
Assignees
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion breaking This change is backwards-incompatible enhancement This change enhances an existing feature of ESLint rule Relates to ESLint's core rules

Comments

@mysticatea
Copy link
Member

mysticatea commented Feb 16, 2019

What rule do you want to change?

Does this change cause the rule to produce more or fewer warnings?

  • More Warnings.

How will the change be implemented? (New option, new default behavior, etc.)?

  • It changes the default value of builtinGlobals option to true.

Please provide some example code that this change will affect:

/*eslint-env browser */
/*eslint no-redeclare: error */

var top = 100

What does the rule currently do for this code?

What will the rule do after it's changed?

Are you willing to submit a pull request to implement this change?

Yes.

Context:

@mysticatea mysticatea added enhancement This change enhances an existing feature of ESLint rule Relates to ESLint's core rules breaking This change is backwards-incompatible evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion labels Feb 16, 2019
@mysticatea mysticatea self-assigned this Feb 16, 2019
@platinumazure
Copy link
Member

platinumazure commented Feb 16, 2019

👍 Yes! This is a sensible default. My guess is we had to implement the option with a default disabled state so it wasn't a breaking change, but we should absolutely change this in the next major release.

@nzakas nzakas added accepted There is consensus among the team that this change meets the criteria for inclusion and removed evaluating The team will evaluate this issue to decide whether it meets the criteria for inclusion labels Feb 28, 2019
@not-an-aardvark
Copy link
Member

This issue was accepted in today's TSC meeting.

mysticatea added a commit that referenced this issue Mar 15, 2019
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Oct 23, 2019
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Oct 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion breaking This change is backwards-incompatible enhancement This change enhances an existing feature of ESLint rule Relates to ESLint's core rules
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants