eslint-config-standard-deviation--es5
ESLint shared configuration for javascript ES5
projects based on standard
shared eslint-config
What is different from standard
eslint-config ?
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--es5][eslint-config-standard-deviation--es5]
[eslint-config-standard-deviation--es5]:./semicolon.jpg
Installation
npm
npm install eslint-config-standard-deviation--es5 --save-dev
WITH dependencies
npm install eslint eslint-config-standard eslint-plugin-standard eslint-plugin-promise --save-dev
npm install eslint eslint-modules-standard-deviation--es5 --save-dev
Works only in npm 3
and beyond environments
Usage
Add extends
to project .eslintrc
{
"extends": ["standard-deviation--es5"]
}
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"
}
[optional] enable/disable eslint rules
{
"extends": ["standard-deviation--es5"],
"rules": {
"space-before-function-paren": ["2", "always"]
}
}
for Javascript ES5
, ES2015
, ES.next
, and React
support, use
Projects using eslint-config-standard-deviation--es5
Contributing
- Documentation improvement
- Feel free to send any PR
License
ISC