]> git.r.bdr.sh - rbdr/forum/blobdiff - .eslintrc
Add post content component
[rbdr/forum] / .eslintrc
index 68bd8d36a04bd5431d54138f49f06ed9e46d517f..c9c017db82c2043686bf87cbf44a8fbebf4609c0 100644 (file)
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,6 +1,23 @@
 {
 {
+  "parserOptions": {
+    "ecmaVersion": 2019,
+    "sourceType": "module"
+  },
+  "env": {
+    "es6": true,
+    "browser": true
+  },
   "extends": [
   "extends": [
-    "eslint-config-hapi"
+    "@hapi/eslint-config-hapi"
+  ],
+  "plugins": [
+    "svelte3"
+  ],
+  "overrides": [
+    {
+      "files": ["**/*.svelte"],
+      "processor": "svelte3/svelte3"
+    }
   ],
   "rules": {
     "indent": [
   ],
   "rules": {
     "indent": [
@@ -10,7 +27,7 @@
     "no-undef": 2,
     "require-yield": 0
   },
     "no-undef": 2,
     "require-yield": 0
   },
-  "parserOptions": {
-    "sourceType": "module"
+  "globals": {
+    "import"
   }
 }
   }
 }