Skip to content

Commit

Permalink
Breaking: update recommended.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Jul 16, 2018
1 parent cb8f504 commit 1946d61
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/configs/recommended.json
@@ -1,6 +1,6 @@
{
"parserOptions": {
"ecmaVersion": 2018
"ecmaVersion": 2019
},
"env": {
"es6": true,
Expand All @@ -24,8 +24,15 @@
"node/no-unpublished-bin": "error",
"node/no-unpublished-import": "off",
"node/no-unpublished-require": "error",
"node/no-unsupported-features": "error",
"node/no-unsupported-features/es-builtins": "error",
"node/no-unsupported-features/es-syntax": "error",
"node/no-unsupported-features/node-builtins": "error",
"node/prefer-global/buffer": "off",
"node/prefer-global/console": "off",
"node/prefer-global/process": "off",
"node/prefer-global/url-search-params": "off",
"node/prefer-global/url": "off",
"node/process-exit-as-throw": "error",
"node/shebang": "error"
}
}
}
1 change: 1 addition & 0 deletions scripts/update-lib-configs-recommended.js
Expand Up @@ -21,6 +21,7 @@ const config = {
Atomics: false,
SharedArrayBuffer: false,
},
plugins: ["node"],
rules: rules.filter(rule => !rule.deprecated).reduce(
(obj, rule) => {
obj[rule.id] = rule.recommended ? "error" : "off"
Expand Down

0 comments on commit 1946d61

Please sign in to comment.