@darkskyapp/eslint-config
Advanced tools
Comparing version
{ | ||
"parserOptions": { | ||
"ecmaVersion": 2016, | ||
"sourceType": "module" | ||
}, | ||
"env": { | ||
@@ -7,2 +11,6 @@ "es6": true, | ||
}, | ||
"plugins": [ | ||
"node", | ||
"promise" | ||
], | ||
"extends": "eslint:recommended", | ||
@@ -49,4 +57,6 @@ "parserOptions": { | ||
"spaced-comment": ["warn", "always"], | ||
"strict": ["error", "global"] | ||
"strict": ["error", "global"], | ||
"node/no-deprecated-api": "error" | ||
} | ||
} |
{ | ||
"name": "@darkskyapp/eslint-config", | ||
"description": "Dark Sky JavaScript Style - ESLint Shareable Config", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"author": "Jay LaPorte <jay@darksky.net> (https://darksky.net/)", | ||
@@ -13,3 +13,5 @@ "contributors": [ | ||
"devDependencies": { | ||
"eslint": "^4.10.0" | ||
"eslint": "^4.10.0", | ||
"eslint-plugin-node": "^6.0.1", | ||
"eslint-plugin-promise": "^3.7.0" | ||
}, | ||
@@ -42,3 +44,5 @@ "homepage": "https://github.com/darkskyapp/eslint-config", | ||
"peerDependencies": { | ||
"eslint": ">=4.10.0" | ||
"eslint": ">=4.10.0", | ||
"eslint-plugin-node": ">=6.0.1", | ||
"eslint-plugin-promise": ">=3.7.0" | ||
}, | ||
@@ -45,0 +49,0 @@ "repository": { |
@@ -18,3 +18,3 @@ # @darkskyapp/eslint-config | ||
```bash | ||
npm install @darkskyapp/eslint-config | ||
npm install --save-dev @darkskyapp/eslint-config eslint-plugin-node eslint-plugin-promise | ||
``` | ||
@@ -26,11 +26,5 @@ | ||
To use the Dark Sky JavaScript Style shareable config, first run this: | ||
To use the Dark Sky JavaScript Style shareable config, install it as shown above, then add this to your `.eslintrc` file: | ||
```bash | ||
npm install --save-dev @darkskyapp/eslint-config | ||
``` | ||
Then, add this to your .eslintrc file: | ||
``` | ||
{ | ||
@@ -37,0 +31,0 @@ "extends": "@darkskyapp" |
14864
2.18%61
17.31%3
200%3
200%40
-13.04%