Skip to content

Commit d2956e8

Browse files
committed
Rebalanced and removed some obsolete rules
1 parent 0ed1814 commit d2956e8

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

configurations/security.mjs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,15 @@ export default [{
1212
},
1313

1414
rules: {
15-
"no-eval": "warn",
16-
"no-implied-eval": "warn",
15+
"no-eval": "error",
16+
"no-implied-eval": "error",
1717
"no-new-func": "warn",
18-
"no-script-url": "warn",
18+
"no-script-url": "error",
1919
"no-unsafe-finally": "error",
2020
"no-unsafe-negation": "error",
2121
"no-prototype-builtins": "warn",
22-
"no-unmodified-loop-condition": "error",
23-
"no-useless-concat": "warn",
24-
"no-useless-escape": "warn",
2522
"no-with": "warn",
2623
"require-await": "warn",
27-
"no-return-await": "warn",
2824
"eqeqeq": ["error", "always"],
2925
},
3026
}];

configurations/standard.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ export default [{
1313

1414
rules: {
1515
"no-console": "warn",
16-
"no-undef": "error",
16+
"no-undef": "warn",
17+
"no-unmodified-loop-condition": "warn",
18+
"no-useless-concat": "warn",
19+
"no-useless-escape": "warn",
1720
"no-unused-vars": ["warn", {
1821
vars: "all",
1922
args: "after-used",

0 commit comments

Comments
 (0)