添加vue eslint规则,修复问题

This commit is contained in:
lyswhut
2021-12-03 23:45:03 +08:00
parent ccd951b5d3
commit 1ab5db8507
35 changed files with 198 additions and 175 deletions
+10 -3
View File
@@ -1,9 +1,15 @@
{
"extends": "standard",
"extends": [
"plugin:vue/vue3-recommended",
"standard"
],
"plugins": [
"html"
],
"parser": "babel-eslint",
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {
"no-new": "off",
"camelcase": "off",
@@ -18,7 +24,8 @@
"standard/no-callback-literal": "off",
"prefer-const": "off",
"no-labels": "off",
"node/no-callback-literal": "off"
"node/no-callback-literal": "off",
"vue/multi-word-component-names": "off"
},
"settings": {
"html/html-extensions": [".html", ".vue"]