fix: eslint settings
continuous-integration/drone/pr Build is passing Details

- the order of extend was wrong, see: https://eslint.vuejs.org/user-guide/#usage
- parser option for vue-eslint-parser was missing, see: https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
- not sure about es2021 and ecmaVersion, but seems to be to way to go. E.g. https://github.com/vitejs/vite/blob/main/.eslintrc.js
This commit is contained in:
Dominik Pschenitschni 2021-09-25 12:45:59 +02:00
parent f762d8ad4d
commit 74f0655af3
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
1 changed files with 6 additions and 2 deletions

View File

@ -78,11 +78,13 @@
"eslintConfig": { "eslintConfig": {
"root": true, "root": true,
"env": { "env": {
"browser": true,
"es2021": true,
"node": true "node": true
}, },
"extends": [ "extends": [
"plugin:vue/essential",
"eslint:recommended", "eslint:recommended",
"plugin:vue/essential",
"@vue/typescript" "@vue/typescript"
], ],
"rules": { "rules": {
@ -103,8 +105,10 @@
"never" "never"
] ]
}, },
"parser": "vue-eslint-parser",
"parserOptions": { "parserOptions": {
"parser": "@typescript-eslint/parser" "parser": "@typescript-eslint/parser",
"ecmaVersion": 2021
}, },
"ignorePatterns": [ "ignorePatterns": [
"*.test.*", "*.test.*",