fix: eslint settings
continuous-integration/drone/pr Build is passing
Details
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:
parent
f762d8ad4d
commit
74f0655af3
|
@ -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.*",
|
||||||
|
|
Reference in New Issue