eslint-plugin-vue version:8.3.0 Node version:16.13.0 Operating System:macOS Monterey 12.1 Please show your full configuration: extends:['eslint:recommended','plugin:vue/vue3-essential','plugin:vue/vue3-strongly-
"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:强制 name 属性为 Pascal 大小写:"vue/name-property-casing": ["error", "PascalCase" // 正确示例name:'MyComponent' 规则文件中关于 eslint-plugin-vue 插件的配置不多,但是extends: ['plugin:vue/recommended', 'eslint:recommended']决定项目中会用到很多推荐配置: vue/attributes-order规定 vue 属性...
['error', 'never'], 'vue/multi-word-component-names': [ 'error', { ignores: ['index'], }, ], 'vue/max-attributes-per-line': [ 'error', { singleline: { max: 4, }, multiline: { max: 1, }, }, ], }, }, ]以下是package.json{ "name": "vite-project&...
{ rules: { 'array-bracket-newline': require('./rules/array-bracket-newline'), 'array-bracket-spacing': require('./rules/array-bracket-spacing'), 'arrow-spacing': require('./rules/arrow-spacing'), 'attribute-hyphenation': require('./rules/attribute-hyphenation'), 'attributes-order': requ...
'vue/attribute-hyphenation': 0, 'vue/order-in-components': 0, 'vue/max-attributes-per-line': 0, 'vue/mustache-interpolation-spacing': 0, // 大括号两边加空格 'vue/attributes-order': 0, // Class方法等顺序问题 'vue/singleline-html-element-content-newline': 0, ...
'vue/attributes-order': 1, "vue/order-in-components": ["error", { "order": [ "el", "name", "parent", "functional", ["delimiters", "comments"], ["components", "directives", "filters"], "extends", "mixins", "inheritAttrs", ...
'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-hyphen...
'vue/attributes-order':[2,{order:[{name:'CUSTOM_CONDITIONALS',group:['v-show','v-cloak','v-if','v-else-if','v-else']},{name:'SOME_OTHER_CUSTOM_GROUP',group:['v-once','v-pre']}'OTHER_ATTRS'],}] It's a bit verbose, but the above configuration could then yield the follow...
['error'],// 强制props使用初始值'vue/require-prop-types': ['error'],// 强制props使用类型定义'vue/no-v-html': ['error'],// 禁止使用 v-html'vue/attributes-order': ['error'],// 强制属性排序'vue/order-in-components': ['error'],// 强制组件内属性排序'vue/this-in-template': ['...