Package Exports
- eslint-config-standard-deviation
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-standard-deviation) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-config-standard-deviation
ESLint shared configuration for javascript
ES5,ES2015,ES.nextandReactprojects based onstandardshared 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][eslint-config-standard-deviation] [eslint-config-standard-deviation]:./semicolon.jpg
Installation
npm
npm install eslint-config-standard-deviation --save-devdependencies installation
npm install eslint babel-eslint eslint-config-standard
eslint-config-standard-react eslint-plugin-react eslint-plugin-promise eslint-plugin-standard --save-devEasy add to project
npm install eslint eslint-modules-standard-deviation --save-devUsage
Add extends to project .eslintrc
{
"extends": ["standard-deviation"]
}[optional] enable/disable eslint rules
{
"extends": ["standard-deviation"],
"rules": {
"space-before-function-paren": ["2", "always"]
}
}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"
}Javascript ES5 only support
Projects using eslint-config-standard-deviation
Contributing
- Documentation improvement
- Feel free to send any PR