eslint-config-standard-deviation
Advanced tools
Comparing version
module.exports = { | ||
'parser': 'babel-eslint', | ||
'extends': ['standard', 'standard-react'], | ||
@@ -3,0 +4,0 @@ |
{ | ||
"name": "eslint-config-standard-deviation", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "a shared eslint-config for javascript ES5, ES2015, ES.next and React projects", | ||
@@ -28,4 +28,13 @@ "main": "index.js", | ||
], | ||
"devDependencies": { | ||
"babel-eslint": "6.x.x", | ||
"eslint": "3.x.x", | ||
"eslint-config-standard": "*", | ||
"eslint-config-standard-react": "*", | ||
"eslint-plugin-standard": "*", | ||
"eslint-plugin-promise": "*", | ||
"eslint-plugin-react": "*" | ||
}, | ||
"author": "bySabi Files", | ||
"license": "ISC" | ||
} |
@@ -32,10 +32,9 @@ # a [standard][standard] derived shared eslint-config | ||
```bash | ||
npm install eslint eslint-config-standard | ||
npm install eslint babel-eslint eslint-config-standard | ||
eslint-config-standard-react eslint-plugin-react eslint-plugin-promise eslint-plugin-standard --save-dev | ||
``` | ||
#### ES2015, ES.next and React support | ||
## Easy add to project | ||
```bash | ||
npm install eslint babel-eslint eslint-config-standard | ||
eslint-config-standard-react eslint-plugin-react eslint-plugin-promise eslint-plugin-standard --save-dev | ||
npm install eslint eslint-modules-standard-deviation --save-dev | ||
``` | ||
@@ -47,20 +46,10 @@ | ||
{ | ||
"extends": ["eslint-config-standard-deviation"] | ||
"extends": ["standard-deviation"] | ||
} | ||
``` | ||
### ES2015, ES.next and React support | ||
Add `parser` babel-eslint to `.eslintrc` | ||
```json | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": ["eslint-config-standard-deviation"] | ||
} | ||
``` | ||
### [optional] enable/disable [eslint rules](http://eslint.org/docs/rules/) | ||
```json | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": ["eslint-config-standard-deviation"], | ||
"extends": ["standard-deviation"], | ||
"rules": { | ||
@@ -81,2 +70,7 @@ "space-before-function-paren": ["2", "always"] | ||
## Javascript `ES5` only support | ||
* [eslint-config-standard-deviation--es5](https://github.com/bySabi/eslint-config-standard-deviation--es5) | ||
* [eslint-modules-standard-deviation--es5](https://github.com/bySabi/eslint-modules-standard-deviation--es5) | ||
## Projects using `eslint-config-standard-deviation` | ||
@@ -83,0 +77,0 @@ * [react-scrollchor](https://github.com/bySabi/react-scrollchor) |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
11396
1.83%8
14.29%7
Infinity%87
-6.45%