"vue/attributes-order": "off", // vue api使用顺序,强制执行属性顺序 "vue/no-v-html": "off", // 禁止使用 v-html "vue/require-default-prop": "off", // 此规则要求为每个 prop 为必填时,必须提供默认值 "vue/multi-word-component-names": "off", // 要求组件
"vue/v-slot-style": "error", // 强制执行 v-slot 指令样式 "vue/no-mutating-props": "off", // 不允许组件 prop的改变 "vue/no-v-html": "off", // 禁止使用 v-html "vue/custom-event-name-casing": "off", // 为自定义事件名称强制使用特定大小写 "vue/attributes-order": "off", /...
"vue/attributes-order":"off", "vue/one-component-per-file":"off", "vue/html-closing-bracket-newline":"off", "vue/max-attributes-per-line":"off", "vue/multiline-html-element-content-newline":"off", "vue/singleline-html-element-content-newline":"off", "vue/attribute-hyphenation":"...
"vue/attribute-hyphenation": "error", // 对模板中的自定义组件强制执行属性命名样式:my-prop="prop" "vue/attributes-order": "off", // vue api使用顺序,强制执行属性顺序 "vue/no-v-html": "off", // 禁止使用 v-html "vue/require-default-prop": "off", // 此规则要求为每个 prop 为必填...
unused-vars':['error',{argsIgnorePattern:'^_',varsIgnorePattern:'^_',},],'space-before-function-paren':'off','vue/attributes-order':'off','vue/one-component-per-file':'off','vue/html-closing-bracket-newline':'off','vue/max-attributes-per-line':'off','vue/multiline-html-element...
Vue3 + TS + ESLint + Prettier配置模板 当前前端代码规范,基本是ESLint + Prettier。 ESLint和Prettier的区别 ESLint: 代码质量检查, 检查不符合要求的代码语法错误, 比如使用了未声明的变量等。 Prettier: 规范代码风格, 例如单双引号, 结尾是否加分号等。
“vue/max-attributes-per-line”: “off”, “vue/attributes-order”: “off”, “vue/html-closing-bracket-newline”: “off”, “vue/singleline-html-element-content-newline”: “off”, “vue/attribute-hyphenation”: “off”, “vue/require-prop-types”: “off”, ...
The import attributes/assertions syntax: with:import "..." with { type: "json" } assert:import "..." assert { type: "json" } with-legacy:import "..." with type: "json". "importOrderImportAttributesKeyword":'with' Default behavior:When not specified, @babel/generator will try to mat...
'vue/name-property-casing': ['error', 'PascalCase'], // vue/component-definition-name-casing 对组件定义名称强制使用特定的大小 'vue/attributes-order': 'off', 'vue/one-component-per-file': 'off', 'vue/html-closing-bracket-newline': 'off', ...
The import attributes/assertions syntax: with: import "..." with { type: "json" } assert: import "..." assert { type: "json" } with-legacy: import "..." with type: "json". "importOrderImportAttributesKeyword": 'with' Default behavior: When not specified, @babel/generator will try...