eslint-config-styleguide-recommended
v4.0.0
Published
Sain default coding style
Downloads
96
Readme
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