From 39982fccd6b3df47548a57aad0029b4ba8074bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Mon, 11 May 2020 18:03:04 +0100 Subject: [PATCH] Update to rules moved out from ESLint 7 --- eslintrc.json | 6 +++--- package.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/eslintrc.json b/eslintrc.json index ca87b71b..c7867d1a 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -50,7 +50,6 @@ "eqeqeq": ["error", "always", { "null": "ignore" }], "func-call-spacing": ["error", "never"], "generator-star-spacing": ["error", { "before": true, "after": true }], - "handle-callback-err": ["error", "^(err|error)$" ], "indent": ["error", 2, { "SwitchCase": 1, "VariableDeclarator": 1, @@ -125,13 +124,11 @@ "no-new": "error", "no-new-func": "error", "no-new-object": "error", - "no-new-require": "error", "no-new-symbol": "error", "no-new-wrappers": "error", "no-obj-calls": "error", "no-octal": "error", "no-octal-escape": "error", - "no-path-concat": "error", "no-proto": "error", "no-redeclare": ["error", { "builtinGlobals": false }], "no-regex-spaces": "error", @@ -205,7 +202,10 @@ "import/no-named-default": "error", "import/no-webpack-loader-syntax": "error", + "node/handle-callback-err": ["error", "^(err|error)$" ], "node/no-deprecated-api": "error", + "node/no-new-require": "error", + "node/no-path-concat": "error", "node/process-exit-as-throw": "error", "promise/param-names": "error", diff --git a/package.json b/package.json index 7a6d562d..9c5277c6 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "devDependencies": { "eslint": "^6.2.2", "eslint-plugin-import": "^2.18.0", - "eslint-plugin-node": "^10.0.0", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.0", "tape": "^4.8.0" @@ -50,7 +50,7 @@ "peerDependencies": { "eslint": ">=6.2.2", "eslint-plugin-import": ">=2.18.0", - "eslint-plugin-node": ">=9.1.0", + "eslint-plugin-node": ">=11.1.0", "eslint-plugin-promise": ">=4.2.1", "eslint-plugin-standard": ">=4.0.0" },