aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.json')
-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"
+ }
}
]
}