Skip to content

romainPrignon/eslint-config-styleguide-recommended

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-styleguide-recommended

Sain default coding style
Can be applied in any language

Rules

  • require or disallow newline at the end of files ("eol-last": ["error", "always"]})
  • enforce consistent indentation ("indent": ["error", 2, { "SwitchCase": 1 }])
  • enforce consistent linebreak style ("linebreak-style": ["error", "unix"])
  • enforce a maximum line length ("max-len": ["error", 120])
  • disallow trailing whitespace at the end of lines ("no-trailing-spaces": "error")

Installation

npm install --save-dev eslint-config-styleguide-recommended

.eslintrc

{
    "extends": "styleguide-recommended"
}

Todo

  • Test eslint rules