From: Ruben Beltran del Rio Date: Sat, 17 Apr 2021 10:36:29 +0000 (+0200) Subject: Use babel-eslint as linter parser X-Git-Url: https://git.r.bdr.sh/rbdr/forum/commitdiff_plain/77182aa8d0fa96b594d1c2582a168e2ebe15964d?ds=inline Use babel-eslint as linter parser --- diff --git a/.eslintignore b/.eslintignore index 51e4a9c..4234ddf 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,3 @@ assets dist .gitignore -src/config/config.js diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 55df7f3..8b5da17 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -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 } };