summaryrefslogtreecommitdiffstats
path: root/.eslintrc.json
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json28
1 files changed, 21 insertions, 7 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 1c77f95525..84911dce95 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -62,11 +62,25 @@
"yoda": "warn"
},
"globals": {
- "console": "writable",
- "svg": "writable",
- "HIDController": "writable",
- "HIDDebug": "writable",
- "HIDPacket": "writable",
- "controller": "writable"
- }
+ "console": "readable"
+ },
+ "overrides": [
+ {
+ "files": ["**/*.mjs"],
+ "parserOptions": {
+ "sourceType": "module"
+ }
+ },
+ {
+ "files": ["res/controllers/*.js"],
+ "globals": {
+ "console": "readable",
+ "svg": "writable",
+ "HIDController": "writable",
+ "HIDDebug": "writable",
+ "HIDPacket": "writable",
+ "controller": "writable"
+ }
+ }
+ ]
}