eslint-config-scratch
Advanced tools
Comparing version
@@ -9,2 +9,3 @@ module.exports = { | ||
}], | ||
'no-prototype-builtins': [2], | ||
'no-confusing-arrow': [2], | ||
@@ -11,0 +12,0 @@ 'no-duplicate-imports': [2], |
module.exports = { | ||
parser: 'babel-eslint', | ||
parser: '@babel/eslint-parser', | ||
parserOptions: { | ||
requireConfigFile: false | ||
}, | ||
rules: { | ||
@@ -4,0 +7,0 @@ // Errors |
{ | ||
"name": "eslint-config-scratch", | ||
"version": "7.0.0", | ||
"version": "8.0.0", | ||
"description": "Shareable ESLint config for Scratch", | ||
@@ -31,9 +31,9 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"babel-eslint": ">=8.0.1", | ||
"eslint": ">=5.3.0" | ||
"@babel/eslint-parser": "^7.11.0", | ||
"eslint": "^7.5.0 || ^8.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-eslint": "10.0.3", | ||
"@babel/eslint-parser": "7.17.0", | ||
"cz-conventional-changelog": "3.0.2", | ||
"eslint": "^6.0.1" | ||
"eslint": "8.15.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "config": { |
@@ -8,10 +8,13 @@ # Scratch ESLint config | ||
## Installation | ||
Install the config along with its peer dependencies, eslint and babel-eslint. | ||
```bash | ||
npm install -D eslint-config-scratch eslint@3 babel-eslint@7 | ||
npm install -DE eslint-config-scratch eslint@^8 @babel/eslint-parser@^7 | ||
``` | ||
If you're using the React config, also install the dependency for that | ||
```bash | ||
npm install -D eslint-plugin-react@6 | ||
npm install -DE eslint-plugin-react@^7 | ||
``` | ||
@@ -18,0 +21,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14952
1.31%11
10%251
1.62%114
2.7%