前端eslint调整

This commit is contained in:
piexlMax
2023-09-14 18:47:47 +08:00
parent 636204bbaf
commit a4f86354d3
64 changed files with 3302 additions and 1096 deletions
+3 -11
View File
@@ -1,9 +1,7 @@
//@author: [bstdn](https://github.com/bstdn)
//@description: ESlint 语法检测
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
sourceType: 'module'
},
env: {
@@ -12,18 +10,12 @@ module.exports = {
es6: true
},
extends: ['plugin:vue/recommended', 'eslint:recommended'],
globals: {
defineProps: "readonly",
defineEmits: "readonly",
defineExpose: "readonly",
withDefaults: "readonly",
},
rules: {
'vue/no-v-model-argument':'off',
'vue/no-v-model-argument': 0,
'vue/max-attributes-per-line': 2,
'vue/singleline-html-element-content-newline': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/name-property-casing': ['error', 'PascalCase'],
'vue/multi-word-component-names': 'off',
'vue/no-v-html': 'off',
'accessor-pairs': 2,
'arrow-spacing': [