From d2956e80065cf8e2925cec7ec0ead9239b3a4b79 Mon Sep 17 00:00:00 2001 From: 7h3Rabbit <62792609+7h3Rabbit@users.noreply.github.com> Date: Sun, 27 Apr 2025 19:23:24 +0200 Subject: [PATCH] Rebalanced and removed some obsolete rules --- configurations/security.mjs | 10 +++------- configurations/standard.mjs | 5 ++++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/configurations/security.mjs b/configurations/security.mjs index a9240ea..970863a 100644 --- a/configurations/security.mjs +++ b/configurations/security.mjs @@ -12,19 +12,15 @@ export default [{ }, rules: { - "no-eval": "warn", - "no-implied-eval": "warn", + "no-eval": "error", + "no-implied-eval": "error", "no-new-func": "warn", - "no-script-url": "warn", + "no-script-url": "error", "no-unsafe-finally": "error", "no-unsafe-negation": "error", "no-prototype-builtins": "warn", - "no-unmodified-loop-condition": "error", - "no-useless-concat": "warn", - "no-useless-escape": "warn", "no-with": "warn", "require-await": "warn", - "no-return-await": "warn", "eqeqeq": ["error", "always"], }, }]; \ No newline at end of file diff --git a/configurations/standard.mjs b/configurations/standard.mjs index 8b6ea60..c5c265d 100644 --- a/configurations/standard.mjs +++ b/configurations/standard.mjs @@ -13,7 +13,10 @@ export default [{ rules: { "no-console": "warn", - "no-undef": "error", + "no-undef": "warn", + "no-unmodified-loop-condition": "warn", + "no-useless-concat": "warn", + "no-useless-escape": "warn", "no-unused-vars": ["warn", { vars: "all", args: "after-used",