-
Notifications
You must be signed in to change notification settings - Fork 26.7k
Changed ESLint rule configs to use 'off', 'warn', and 'error' instead of numbers for better readability #946
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
Conversation
Thanks for the contribution! However, I prefer sticking with the historical |
The main reason for me submitting this pull request is that the latest documentation for eslint rules all use the string enums rather than numbers. |
Understood, and that's a fair point. I'll leave this open for the time being so other contributors can weigh in (heads up, it'll likely need to be rebased and reran before merging, if it comes to that) |
I'm 👍🏻 to this change. It seems to me as though it makes the configuration more readable, which is what we should always strive for. |
I also see this as a positive change, for the same reasons already stated. |
I rebased and reran the codeshift script. |
Looks reasonable to me |
Any other suggestions/thoughts before this can be merged? Otherwise I'll have to keep rebasing and re running the codeshift |
At the very least, this needs to wait until after #936 is resolved, since I have those commits queued up and don't want the conflict. I still do not think this is a good change, fwiw, but enough contributors have weighed in that I'm ok accepting it once the new release is out. |
+1 to this change: as more time goes forward, more code is just going to be using "off", "warn", and "error". Newer folks (like myself), then have to go back and look back to see what the old numbers mean. |
@yangsu if you'd like to rebase this one last time, i'll merge it. |
… of numbers for better readability
Done |
I wrote a JsCodeShift script to accomplish this.