-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Update eslint rules #3162
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
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
One more from https://github.com/plotly/plotly.js/pull/3125/files#r227541345:
|
from #3020 consider enabling https://eslint.org/docs/rules/no-shadow - can save us from some very confusing bugs. As @etpinard mentions in #3017:
|
Potential new rule: https://eslint.org/docs/rules/quote-props which fits the style in most (but not all!) of our src files. |
Potential new rule: https://eslint.org/docs/rules/padded-blocks DONE in: #3697 |
Maybe update our |
We previously started to dislike To put all DONE in: #3757 |
This comment has been minimized.
This comment has been minimized.
Potential rule: https://eslint.org/docs/rules/func-names |
Potential rule: https://eslint.org/docs/rules/max-statements-per-line |
I am a fan of it. |
Potential rule: https://eslint.org/docs/rules/object-curly-spacing |
https://eslint.org/docs/rules/no-prototype-builtins is now turned on by default in eslint |
Potential rule: https://eslint.org/docs/rules/global-require |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
Following @etpinard's #3158 (comment), we should probably update our linter syntax to reflect the current coding style.
In particular we should probably add
"one-var": { "initialized": "never", "uninitialized": "consecutive" }
and fix any possible errors.Update: the
"initialized"
part got done in #3374The text was updated successfully, but these errors were encountered: