Getting eslint-config-eslint in line with coding standards
See original GitHub issuePer discussion in chat, the goal of this issue is to document (and eventually implement) changes to the Coding Standards and/or eslint-config-eslint
to bring both in line as much as possible.
Actionable items:
- Enable space-in-parens to enforce no spaces in parentheses
- Enable quote-props (as-needed) to enforce unquoted properties
- Enable lines-around-comment to require blank lines before line and block
Enable vars-on-top to ensure variables are declared at the top of their containing scope (Note: Might be removed)Enable one-var, per @ilyavolodin’s suggestion (Note: Might be removed)Using one-var-declaration-per-line- Enable one-var-declaration-per-line to enforce declaring one variable per line
- Enable strict to enforce strict mode at the desired scope
- Enable newline-after-var to enforce blank line between variable declarations and first statement
- Enable no-console
- Enable valid-jsdoc if not enabled, use preferType to ensure lowercase builtin types per guidelines.
Issue Analytics
- State:
- Created 8 years ago
- Comments:44 (43 by maintainers)
Top Results From Across the Web
Configuring ESLint - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >ESLint: Everything You need to know about setting up a style ...
ESLint : Everything You need to know about setting up a style-guide with ESLint. A great project is made out of consistent code....
Read more >How To Lint and Format Code with ESLint in Visual Studio Code
At the bottom of the .eslintrc.json file, you will see a "rules" object. To customize the errors that trigger ESLint or to disable...
Read more >Improve code quality using ESLint in IntelliJ | ICS 314, Fall 2017
If you get “npm ERROR”, that's a problem that needs to be solved. 3. Install AirBnB Javascript Style Guide configuration rules. Now that...
Read more >ESLint + VSCode: How to Format Your Code Using .eslintrc
2. Configure VSCode Settings to use ESLint for Formatting ... Open up VSCode's settings. On a Mac, press Cmd+, or get there through...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just my feeling, I hate
vars-on-top
style…By the way, Node v6 will be released soon, and we have a plan to drop supports of Node 0.x. After that, I guess we use
no-var
rule. Thelet
declarations are block-scoped, so I think we will get worse upgrade path if we applyvars-on-top
now.Fine by me. Closing. Thanks everyone for your help!