question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting eslint-config-eslint in line with coding standards

See original GitHub issue

Per 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:closed
  • Created 8 years ago
  • Comments:44 (43 by maintainers)

github_iconTop GitHub Comments

5reactions
mysticateacommented, Apr 2, 2016

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. The let declarations are block-scoped, so I think we will get worse upgrade path if we apply vars-on-top now.

0reactions
platinumazurecommented, Aug 10, 2016

Fine by me. Closing. Thanks everyone for your help!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found