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

Enable no-const-assign #229

Closed
dcousens opened this issue Aug 13, 2015 · 1 comment

Comments

@dcousens
Copy link
Member

commented Aug 13, 2015

Can the following throw a warning?

const x = 1
x = 2

console.log(x)

It should be easy enough to detect.

edit: Can we enable http://eslint.org/docs/rules/no-const-assign

@dcousens dcousens changed the title const re-declare Enable no-const-assign Aug 13, 2015

@dcousens dcousens closed this Aug 13, 2015

@dcousens

This comment has been minimized.

Copy link
Member Author

commented Aug 13, 2015

My bad, it is already enabled, I was just running an old version.

@feross feross added enhancement and removed enhancement labels May 10, 2018

@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.