Skip to content

Commit 39982fc

Browse files
committed
Update to rules moved out from ESLint 7
1 parent 3f4a3fe commit 39982fc

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

eslintrc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"eqeqeq": ["error", "always", { "null": "ignore" }],
5151
"func-call-spacing": ["error", "never"],
5252
"generator-star-spacing": ["error", { "before": true, "after": true }],
53-
"handle-callback-err": ["error", "^(err|error)$" ],
5453
"indent": ["error", 2, {
5554
"SwitchCase": 1,
5655
"VariableDeclarator": 1,
@@ -125,13 +124,11 @@
125124
"no-new": "error",
126125
"no-new-func": "error",
127126
"no-new-object": "error",
128-
"no-new-require": "error",
129127
"no-new-symbol": "error",
130128
"no-new-wrappers": "error",
131129
"no-obj-calls": "error",
132130
"no-octal": "error",
133131
"no-octal-escape": "error",
134-
"no-path-concat": "error",
135132
"no-proto": "error",
136133
"no-redeclare": ["error", { "builtinGlobals": false }],
137134
"no-regex-spaces": "error",
@@ -205,7 +202,10 @@
205202
"import/no-named-default": "error",
206203
"import/no-webpack-loader-syntax": "error",
207204

205+
"node/handle-callback-err": ["error", "^(err|error)$" ],
208206
"node/no-deprecated-api": "error",
207+
"node/no-new-require": "error",
208+
"node/no-path-concat": "error",
209209
"node/process-exit-as-throw": "error",
210210

211211
"promise/param-names": "error",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"devDependencies": {
1414
"eslint": "^6.2.2",
1515
"eslint-plugin-import": "^2.18.0",
16-
"eslint-plugin-node": "^10.0.0",
16+
"eslint-plugin-node": "^11.1.0",
1717
"eslint-plugin-promise": "^4.2.1",
1818
"eslint-plugin-standard": "^4.0.0",
1919
"tape": "^4.8.0"
@@ -50,7 +50,7 @@
5050
"peerDependencies": {
5151
"eslint": ">=6.2.2",
5252
"eslint-plugin-import": ">=2.18.0",
53-
"eslint-plugin-node": ">=9.1.0",
53+
"eslint-plugin-node": ">=11.1.0",
5454
"eslint-plugin-promise": ">=4.2.1",
5555
"eslint-plugin-standard": ">=4.0.0"
5656
},

0 commit comments

Comments
 (0)