|
@@ -37,7 +37,9 @@ module.exports = {
|
|
|
"@typescript-eslint/restrict-plus-operands": "off",
|
|
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
|
- "vue/v-on-event-hyphenation": "off",
|
|
|
+ // 一处使用hypen和一处不使用hypen,让字符搜索变得困难
|
|
|
+ "vue/attribute-hyphenation": ["error", "never"],
|
|
|
+ "vue/v-on-event-hyphenation": ["error", "never", { autofix: true }],
|
|
|
"vue/no-v-html": "off",
|
|
|
},
|
|
|
ignorePatterns: [".eslintrc.js", "src/test"],
|