Skip to content

Commit

Permalink
feat: support eslint v8 (#193)
Browse files Browse the repository at this point in the history
* 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 <pelle@kodfabrik.se>
  • Loading branch information
theoludwig and voxpelli committed Jan 7, 2022
1 parent 7460290 commit 8457629
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 deletions .eslintrc.json
Expand Up @@ -14,7 +14,7 @@

"plugins": [
"import",
"node",
"n",
"promise"
],

Expand Down Expand Up @@ -231,13 +231,13 @@
"import/no-named-default": "error",
"import/no-webpack-loader-syntax": "error",

"node/handle-callback-err": ["error", "^(err|error)$" ],
"node/no-callback-literal": "error",
"node/no-deprecated-api": "error",
"node/no-exports-assign": "error",
"node/no-new-require": "error",
"node/no-path-concat": "error",
"node/process-exit-as-throw": "error",
"n/handle-callback-err": ["error", "^(err|error)$" ],
"n/no-callback-literal": "error",
"n/no-deprecated-api": "error",
"n/no-exports-assign": "error",
"n/no-new-require": "error",
"n/no-path-concat": "error",
"n/process-exit-as-throw": "error",

"promise/param-names": "error"
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -41,7 +41,7 @@ The above steps will automatically set up an ESLint configuration and install th
**If you want to set up the config manually**, run the following command:

```bash
npm install --save-dev eslint-config-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node
npm install --save-dev eslint-config-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-n

This comment has been minimized.

Copy link
@melroy89

melroy89 Sep 15, 2022

You remove ode?? Restore eslint-plugin-node

```

Then, add this to your `.eslintrc` file:
Expand Down
18 changes: 9 additions & 9 deletions package.json
Expand Up @@ -11,11 +11,11 @@
"url": "https://github.com/standard/eslint-config-standard/issues"
},
"devDependencies": {
"eslint": "^7.12.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"tape": "^5.0.1"
"eslint": "^8.5.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-n": "^14.0.0",
"eslint-plugin-promise": "^6.0.0",
"tape": "^5.3.2"
},
"homepage": "https://github.com/standard/eslint-config-standard",
"keywords": [
Expand Down Expand Up @@ -47,10 +47,10 @@
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"eslint": "^7.12.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1 || ^5.0.0"
"eslint": "^8.0.1",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^14.0.0",
"eslint-plugin-promise": "^6.0.0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 8457629

Please sign in to comment.