eslint-config-standard-deviation
ESLint shared configuration for javascript
ES5
,ES2015
,ES.next
andReact
projects based onstandard
shared eslint-config
standard
eslint-config ?
What is different from standard shared eslint-config rules are almost fine but we do not like to force us to ...
- not use semicolon
;
- put space before function parens
function foo ()
![eslint-config-standard-deviation][eslint-config-standard-deviation] [eslint-config-standard-deviation]:./semicolon.jpg
Installation
npm
npm install eslint-config-standard-deviation --save-dev
WITH dependencies
npm install eslint babel-eslint eslint-config-standard eslint-config-standard-react eslint-plugin-react eslint-plugin-promise eslint-plugin-standard --save-dev
eslint-modules-standard-deviation
OR add easily to projects usingnpm install eslint eslint-modules-standard-deviation --save-dev
npm 3
and beyond environments
Works only in Usage
Add extends
to project .eslintrc
{
"extends": ["standard-deviation"]
}
Add scripts to package.json
"scripts": {
"lint": "eslint . --ext .js,.jsx",
"testonly": "echo \"Error: no test specified\" && exit 1",
"test": "npm run lint && npm run testonly"
}
eslint rules
[optional] enable/disable{
"extends": ["standard-deviation"],
"rules": {
"space-before-function-paren": ["error", "always"]
}
}
ES5
only, use
for Javascript
eslint-config-standard-deviation
Projects using
Contributing
- Documentation improvement
- Feel free to send any PR