From 845762901677ee858386a6a1f7505456980ff16a Mon Sep 17 00:00:00 2001 From: Divlo Date: Fri, 7 Jan 2022 18:04:03 +0100 Subject: [PATCH] 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 --- .eslintrc.json | 16 ++++++++-------- README.md | 2 +- package.json | 18 +++++++++--------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 6edbb1a0..9d14f1d7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -14,7 +14,7 @@ "plugins": [ "import", - "node", + "n", "promise" ], @@ -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" } diff --git a/README.md b/README.md index c89ae914..f1877038 100644 --- a/README.md +++ b/README.md @@ -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 ``` Then, add this to your `.eslintrc` file: diff --git a/package.json b/package.json index f9c5f7eb..37f503ed 100644 --- a/package.json +++ b/package.json @@ -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": [ @@ -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",