Skip to content

Commit e5e366d

Browse files
authored
Merge pull request #169 from standard/eslint7
Update to rules moved out from ESLint 7
2 parents b964206 + 39982fc commit e5e366d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

eslintrc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"eqeqeq": ["error", "always", { "null": "ignore" }],
5656
"func-call-spacing": ["error", "never"],
5757
"generator-star-spacing": ["error", { "before": true, "after": true }],
58-
"handle-callback-err": ["error", "^(err|error)$" ],
5958
"indent": ["error", 2, {
6059
"SwitchCase": 1,
6160
"VariableDeclarator": 1,
@@ -130,13 +129,11 @@
130129
"no-new": "error",
131130
"no-new-func": "error",
132131
"no-new-object": "error",
133-
"no-new-require": "error",
134132
"no-new-symbol": "error",
135133
"no-new-wrappers": "error",
136134
"no-obj-calls": "error",
137135
"no-octal": "error",
138136
"no-octal-escape": "error",
139-
"no-path-concat": "error",
140137
"no-proto": "error",
141138
"no-redeclare": ["error", { "builtinGlobals": false }],
142139
"no-regex-spaces": "error",
@@ -210,7 +207,10 @@
210207
"import/no-named-default": "error",
211208
"import/no-webpack-loader-syntax": "error",
212209

210+
"node/handle-callback-err": ["error", "^(err|error)$" ],
213211
"node/no-deprecated-api": "error",
212+
"node/no-new-require": "error",
213+
"node/no-path-concat": "error",
214214
"node/process-exit-as-throw": "error",
215215

216216
"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)