summaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-10 19:21:14 -0500
committerGitHub <noreply@github.com>2023-12-11 00:21:14 +0000
commite9dde826df738c4094709804d72de4991b377a8a (patch)
tree22e20851ea92868e29e0afe70e745fcc306661b1 /.eslintrc.json
parenta6c57cc4d7ffeff16320e1d27280ac752fb80e21 (diff)
Change no-console to error, only for ext files (#352)
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json9
1 files changed, 8 insertions, 1 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 9f1c3255..f1c995a0 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -61,7 +61,6 @@
"no-case-declarations": "error",
"no-const-assign": "error",
"no-constant-condition": "off",
- "no-console": "warn",
"no-global-assign": "error",
"no-param-reassign": "off",
"no-prototype-builtins": "error",
@@ -561,6 +560,14 @@
},
{
"files": [
+ "ext/**/*.js"
+ ],
+ "rules": {
+ "no-console": "error"
+ }
+ },
+ {
+ "files": [
"ext/js/core.js",
"ext/js/core/extension-error.js",
"ext/js/**/sandbox/**/*.js"