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": {
|
||||
"root": true,
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:vue/essential",
|
||||
"eslint:recommended",
|
||||
"plugin:vue/essential",
|
||||
"@vue/typescript"
|
||||
],
|
||||
"rules": {
|
||||
|
@ -103,8 +105,10 @@
|
|||
"never"
|
||||
]
|
||||
},
|
||||
"parser": "vue-eslint-parser",
|
||||
"parserOptions": {
|
||||
"parser": "@typescript-eslint/parser"
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"ecmaVersion": 2021
|
||||
},
|
||||
"ignorePatterns": [
|
||||
"*.test.*",
|
||||
|
|
Reference in New Issue