From 39f9ad8e97f3a3071f31b9156ddf7b7891a07935 Mon Sep 17 00:00:00 2001 From: Johan Kronberg Date: Thu, 16 Oct 2025 15:30:11 +0200 Subject: [PATCH] Adjust configurations according to Slack discussion - change to either use error or off (no warnings) --- configurations/security.mjs | 12 ++++++------ configurations/standard.mjs | 20 ++++++++------------ 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/configurations/security.mjs b/configurations/security.mjs index 6bcbfd5..4bdf546 100644 --- a/configurations/security.mjs +++ b/configurations/security.mjs @@ -14,13 +14,13 @@ export default [{ rules: { "no-eval": "error", "no-implied-eval": "error", - "no-new-func": "warn", + "no-new-func": "off", "no-script-url": "error", - "no-unsafe-finally": "warn", - "no-unsafe-negation": "warn", - "no-prototype-builtins": "warn", - "no-with": "warn", - "require-await": "warn", + "no-unsafe-finally": "off", + "no-unsafe-negation": "off", + "no-prototype-builtins": "off", + "no-with": "off", + "require-await": "off", "eqeqeq": "off", }, }]; \ No newline at end of file diff --git a/configurations/standard.mjs b/configurations/standard.mjs index 8dd6025..cfd0579 100644 --- a/configurations/standard.mjs +++ b/configurations/standard.mjs @@ -12,18 +12,14 @@ export default [{ }, rules: { - "no-console": "warn", - "no-debugger": "warn", - "no-unreachable": "warn", - "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", - ignoreRestSiblings: false, - }], + "no-console": "off", + "no-debugger": "error", + "no-unreachable": "off", + "no-undef": "off", + "no-unmodified-loop-condition": "off", + "no-useless-concat": "off", + "no-useless-escape": "off", + "no-unused-vars": "off", semi: "off", quotes: "off", indent: "off",