]> git.r.bdr.sh - rbdr/forum/commitdiff
Use babel-eslint as linter parser
authorRuben Beltran del Rio <redacted>
Sat, 17 Apr 2021 10:36:29 +0000 (12:36 +0200)
committerRuben Beltran del Rio <redacted>
Sat, 17 Apr 2021 10:36:29 +0000 (12:36 +0200)
.eslintignore
.eslintrc.cjs

index 51e4a9ca83fc172e235fc8bc4f7786f941671447..4234ddf723d7c011729a2e36c4c603b0204274d6 100644 (file)
@@ -1,4 +1,3 @@
 assets
 dist
 .gitignore
-src/config/config.js
index 55df7f379b0d76ffd94a112749143d0da124103b..8b5da173bfea8f70a58a38bc6314cf4eb2372cc4 100644 (file)
@@ -3,6 +3,7 @@ module.exports = {
   extends: ['@hapi/eslint-config-hapi'],
   plugins: ['svelte3'],
   overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
+  parser: 'babel-eslint',
   parserOptions: {
     sourceType: 'module',
     ecmaVersion: 2019
@@ -16,5 +17,10 @@ module.exports = {
     indent: [2, 2],
     'no-undef': 2,
     'require-yield': 0
+  },
+  globals: {
+    test: true,
+    describe: true,
+    expect: true
   }
 };