Skip to content

Commit

Permalink
feat(node): disable all Node-specific rules (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous authored May 7, 2020
1 parent 623263d commit 795de66
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
"./rules/core/variables.js",
"./rules/core/styles.js",
"./rules/core/es6.js",
"./rules/core/node-disable-all.js",
"./rules/core/node.js",
"./rules/plugins/prettier.js",
"./rules/plugins/eslint-comments.js",
"./rules/plugins/import.js",
Expand Down
2 changes: 1 addition & 1 deletion node.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ["./index.js", "./rules/core/node.js", "./rules/plugins/node.js"],
extends: ["./index.js", "./rules/plugins/node.js"],
};
8 changes: 0 additions & 8 deletions rules/core/node-disable-all.js

This file was deleted.

14 changes: 9 additions & 5 deletions rules/core/node.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
// NOTE: Node-specific rules are deprecated and will be removed.
//
// See https://eslint.org/blog/2020/02/whats-coming-in-eslint-7.0.0#deprecating-node-js-commonjs-specific-rules

module.exports = {
rules: {
"callback-return": "error",
"callback-return": "off",
"global-require": "off",
"handle-callback-err": "error",
"no-buffer-constructor": "error",
"handle-callback-err": "off",
"no-buffer-constructor": "off",
"no-mixed-requires": "off",
"no-new-require": "error",
"no-path-concat": "error",
"no-new-require": "off",
"no-path-concat": "off",
"no-process-env": "off",
"no-process-exit": "off",
"no-restricted-modules": "off",
Expand Down

0 comments on commit 795de66

Please sign in to comment.