From 8433dd4f9a1f43d6e8762bd67696942574fb1c9e Mon Sep 17 00:00:00 2001 From: GZolla <43836485+GZolla@users.noreply.github.com> Date: Mon, 28 Oct 2024 10:25:08 -0700 Subject: [PATCH] feat: Update config rules --- index.js | 1 + lit-config.js | 7 ++++++- node-config.js | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 5857361..7588775 100644 --- a/index.js +++ b/index.js @@ -20,6 +20,7 @@ module.exports = { "no-multiple-empty-lines": [2, {"max": 1}], // nr "no-multi-spaces": 2, // nr "no-new-wrappers": 2, // nr + "no-restricted-syntax": [0, "CatchClause[param=null]"], "no-trailing-spaces": 2, // nr "no-undef": 2, "no-unneeded-ternary": 2, // nr diff --git a/lit-config.js b/lit-config.js index 0aab0b7..14be6c4 100644 --- a/lit-config.js +++ b/lit-config.js @@ -44,10 +44,15 @@ module.exports = { "sort-class-members" ], "overrides": [{ - "files": "./**/lang/*.js", + "files": "./**/lang/*.js", "rules": { "quotes": 0 } + },{ + "files": "./**/demo/*.html", + "rules": { + "no-console": 0 + } }], "rules": { "lit/attribute-value-entities": 2, diff --git a/node-config.js b/node-config.js index 0057edc..9b12a2a 100644 --- a/node-config.js +++ b/node-config.js @@ -7,4 +7,7 @@ module.exports = { "parserOptions": { "sourceType": "module" }, + "rules": { + "no-console":0 + } };