]> git.r.bdr.sh - rbdr/serpentity/commitdiff
Adapt eslint rules to use modules
authorBen Beltran <redacted>
Mon, 9 Mar 2020 18:23:02 +0000 (13:23 -0500)
committerBen Beltran <redacted>
Mon, 9 Mar 2020 18:23:02 +0000 (13:23 -0500)
.eslintrc

index e38a8dda1ffe71723130aa01d2f64af060d1cb49..1ea88c51923b13234d30d5c3852d99fc6f4c8a2a 100644 (file)
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,9 +1,21 @@
 {
-  "extends": "eslint-config-hapi",
+  "parserOptions": {
+    "ecmaVersion": 2019,
+    "sourceType": "module"
+  },
+  "env": {
+    "es6": true,
+    "browser": true
+  },
+  "extends": [
+    "@hapi/eslint-config-hapi"
+  ],
   "rules": {
     "indent": [
-      "error",
+      2,
       2
-    ]
+    ],
+    "no-undef": 2,
+    "require-yield": 0
   }
 }