]> git.r.bdr.sh - rbdr/forum/blobdiff - .eslintrc
Add svelte linting
[rbdr/forum] / .eslintrc
index bd7f88597119de48c7531b5bffe1a07f481dccf8..8902297c7e2746bddb7258e178a0c52dd874769b 100644 (file)
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,7 +1,24 @@
 {
+  "parserOptions": {
+    "ecmaVersion": 2019,
+    "sourceType": "module"
+  },
+  "env": {
+    "es6": true,
+    "browser": true
+  },
   "extends": [
     "@hapi/eslint-config-hapi"
   ],
+  "plugins": [
+    "svelte3"
+  ],
+  "overrides": [
+    {
+      "files": ["**/*.svelte"],
+      "processor": "svelte3/svelte3"
+    }
+  ],
   "rules": {
     "indent": [
       2,
@@ -9,8 +26,5 @@
     ],
     "no-undef": 2,
     "require-yield": 0
-  },
-  "parserOptions": {
-    "sourceType": "module"
   }
 }