diff --git a/.eslintrc.cjs b/.eslintrc.cjs index e4abf99..007ecfa 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -24,6 +24,13 @@ module.exports = { "vue/no-v-model-argument": "off", "@typescript-eslint/no-non-null-assertion": "off", }, + // eslint不能对html文件生效 + overrides: [ + { + files: ["*.html"], + processor: "vue/.vue", + }, + ], // https://eslint.org/docs/latest/use/configure/language-options#specifying-globals globals: { DialogOption: "readonly", diff --git a/index.html b/index.html index 74ae187..42a6160 100644 --- a/index.html +++ b/index.html @@ -1,18 +1,16 @@ +
+ + + + + +