eslint-config-standard-deviation--es5
v1.0.5
Published
a shared eslint-config for javascript ES5 projects
Downloads
18
Maintainers
Readme
eslint-config-standard-deviation--es5
ESLint shared configuration for javascript
ES5
projects based onstandard
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
OR add easily to projects using eslint-modules-standard-deviation--es5
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