eslint-config-styleguide-recommended

4.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-styleguide-recommended

Weekly Downloads

6

Version

4.0.0

License

MIT

Unpacked Size

2.7 kB

Total Files

5

Last publish

Collaborators

  • romainprignon