File tree Expand file tree Collapse file tree 3 files changed +18
-18
lines changed
Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1414
1515 "plugins" : [
1616 " import" ,
17- " node " ,
17+ " n " ,
1818 " promise"
1919 ],
2020
231231 "import/no-named-default" : " error" ,
232232 "import/no-webpack-loader-syntax" : " error" ,
233233
234- "node /handle-callback-err" : [" error" , " ^(err|error)$" ],
235- "node /no-callback-literal" : " error" ,
236- "node /no-deprecated-api" : " error" ,
237- "node /no-exports-assign" : " error" ,
238- "node /no-new-require" : " error" ,
239- "node /no-path-concat" : " error" ,
240- "node /process-exit-as-throw" : " error" ,
234+ "n /handle-callback-err" : [" error" , " ^(err|error)$" ],
235+ "n /no-callback-literal" : " error" ,
236+ "n /no-deprecated-api" : " error" ,
237+ "n /no-exports-assign" : " error" ,
238+ "n /no-new-require" : " error" ,
239+ "n /no-path-concat" : " error" ,
240+ "n /process-exit-as-throw" : " error" ,
241241
242242 "promise/param-names" : " error"
243243 }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ The above steps will automatically set up an ESLint configuration and install th
4141** If you want to set up the config manually** , run the following command:
4242
4343``` bash
44- npm install --save-dev eslint-config-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node
44+ npm install --save-dev eslint-config-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-n
4545```
4646
4747Then, add this to your ` .eslintrc ` file:
Original file line number Diff line number Diff line change 1111 "url" : " https://github.com/standard/eslint-config-standard/issues"
1212 },
1313 "devDependencies" : {
14- "eslint" : " ^7.12.1 " ,
15- "eslint-plugin-import" : " ^2.22.1 " ,
16- "eslint-plugin-node " : " ^11.1 .0" ,
17- "eslint-plugin-promise" : " ^4.2.1 " ,
18- "tape" : " ^5.0.1 "
14+ "eslint" : " ^8.5.0 " ,
15+ "eslint-plugin-import" : " ^2.25.3 " ,
16+ "eslint-plugin-n " : " ^14.0 .0" ,
17+ "eslint-plugin-promise" : " ^6.0.0 " ,
18+ "tape" : " ^5.3.2 "
1919 },
2020 "homepage" : " https://github.com/standard/eslint-config-standard" ,
2121 "keywords" : [
4747 "license" : " MIT" ,
4848 "main" : " index.js" ,
4949 "peerDependencies" : {
50- "eslint" : " ^7.12 .1" ,
51- "eslint-plugin-import" : " ^2.22.1 " ,
52- "eslint-plugin-node " : " ^11.1 .0" ,
53- "eslint-plugin-promise" : " ^4.2.1 || ^5 .0.0"
50+ "eslint" : " ^8.0 .1" ,
51+ "eslint-plugin-import" : " ^2.25.2 " ,
52+ "eslint-plugin-n " : " ^14.0 .0" ,
53+ "eslint-plugin-promise" : " ^6 .0.0"
5454 },
5555 "repository" : {
5656 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments