Skip to content

Commit 8457629

Browse files
theoludwigvoxpelli
andauthored
feat: support eslint v8 (#193)
* feat: support eslint v8 * Update all dependencies to their latest one Only eslint-plugin-promise is complaining and blocking right now * fix: set ecmaVersion to 2021 * fix: replace eslint-plugin-node by eslint-plugin-n * fix: replace node/rule to n/rule in eslint config Co-authored-by: Pelle Wessman <[email protected]>
1 parent 7460290 commit 8457629

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.eslintrc.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
"plugins": [
1616
"import",
17-
"node",
17+
"n",
1818
"promise"
1919
],
2020

@@ -231,13 +231,13 @@
231231
"import/no-named-default": "error",
232232
"import/no-webpack-loader-syntax": "error",
233233

234-
"node/handle-callback-err": ["error", "^(err|error)$" ],
235-
"node/no-callback-literal": "error",
236-
"node/no-deprecated-api": "error",
237-
"node/no-exports-assign": "error",
238-
"node/no-new-require": "error",
239-
"node/no-path-concat": "error",
240-
"node/process-exit-as-throw": "error",
234+
"n/handle-callback-err": ["error", "^(err|error)$" ],
235+
"n/no-callback-literal": "error",
236+
"n/no-deprecated-api": "error",
237+
"n/no-exports-assign": "error",
238+
"n/no-new-require": "error",
239+
"n/no-path-concat": "error",
240+
"n/process-exit-as-throw": "error",
241241

242242
"promise/param-names": "error"
243243
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The above steps will automatically set up an ESLint configuration and install th
4141
**If you want to set up the config manually**, run the following command:
4242

4343
```bash
44-
npm install --save-dev eslint-config-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node
44+
npm install --save-dev eslint-config-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-n
4545
```
4646

4747
Then, add this to your `.eslintrc` file:

package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"url": "https://github.com/standard/eslint-config-standard/issues"
1212
},
1313
"devDependencies": {
14-
"eslint": "^7.12.1",
15-
"eslint-plugin-import": "^2.22.1",
16-
"eslint-plugin-node": "^11.1.0",
17-
"eslint-plugin-promise": "^4.2.1",
18-
"tape": "^5.0.1"
14+
"eslint": "^8.5.0",
15+
"eslint-plugin-import": "^2.25.3",
16+
"eslint-plugin-n": "^14.0.0",
17+
"eslint-plugin-promise": "^6.0.0",
18+
"tape": "^5.3.2"
1919
},
2020
"homepage": "https://github.com/standard/eslint-config-standard",
2121
"keywords": [
@@ -47,10 +47,10 @@
4747
"license": "MIT",
4848
"main": "index.js",
4949
"peerDependencies": {
50-
"eslint": "^7.12.1",
51-
"eslint-plugin-import": "^2.22.1",
52-
"eslint-plugin-node": "^11.1.0",
53-
"eslint-plugin-promise": "^4.2.1 || ^5.0.0"
50+
"eslint": "^8.0.1",
51+
"eslint-plugin-import": "^2.25.2",
52+
"eslint-plugin-n": "^14.0.0",
53+
"eslint-plugin-promise": "^6.0.0"
5454
},
5555
"repository": {
5656
"type": "git",

0 commit comments

Comments
 (0)