aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-02-15 12:38:45 -0500
committerGitHub <noreply@github.com>2021-02-15 12:38:45 -0500
commit723a5a5a3503d84ade939434298d69febb07ded0 (patch)
treec00e8a353d8ba2dfab52b8317986b73ef51047bb
parent750bb67b4a29b1c4c78d492476654cd2ad368d43 (diff)
Update eslint rules (#1401)
-rw-r--r--.eslintrc.json18
1 files changed, 17 insertions, 1 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 9571d853..0fe6743c 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -3,7 +3,11 @@
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
- "sourceType": "script"
+ "sourceType": "script",
+ "ecmaFeatures": {
+ "globalReturn": false,
+ "impliedStrict": true
+ }
},
"env": {
"browser": true,
@@ -203,6 +207,18 @@
"Intl": "readonly",
"crypto": "readonly"
}
+ },
+ {
+ "files": [
+ "ext/js/**/*.js"
+ ],
+ "excludedFiles": [
+ "ext/js/core.js",
+ "ext/js/**/*main.js"
+ ],
+ "rules": {
+ "no-implicit-globals": "error"
+ }
}
]
}