ERROR in [eslint] .eslintrc.js: Configuration for rule "vue/max-attributes-per-line" is invalid: Value {"max":1,"allowFirstLine":false} should be number. Value {"max":1,"allowFirstLine":false} should NOT have additional properties. Value {"max":1,"allowFirstLine":false} should mat...
//禁止混合使用不同的操作符'vue/max-attributes-per-line':[//属性换行,和单行多行最大个数2,{'singleline':5,'multiline':{'max':1,'allowFirstLine':false}}],'vue/attribute-hyphenation':0,//属性推荐-间隔,避免驼峰'vue/html-self-closing':0,'vue/component...
extends: ['plugin:vue/recommended', 'eslint:recommended'], // add your custom rules here // it is base on https://github.com/vuejs/eslint-config-vue rules: { "vue/max-attributes-per-line": [2, { "singleline": 10, "multiline": { "max": 1, "allowFirstLine": false } }], ...
"vue/max-attributes-per-line": [2, { "singleline": 10, // vue文件单行最大允许7个属性, "multiline": { // vue多行文件最大允许1个属性。 "max": 2, "allowFirstLine": true // 是否允许首行有属性。 } }], "vue/html-self-closing": [0, { // 没有内容的html标签需要变为自闭和标签。
parser:'@babel/eslint-parser'},//add your custom rules here//it is base on https://github.com/vuejs/eslint-config-vue//"off"或者0,不启用这个规则//"warn"或者1,出现问题会有警告//"error"或者2,出现问题会报错rules: {'vue/max-attributes-per-line': [0, ...
Vue3+TypeScript 项目中,配置 ESLint 和 Prettier 接上篇:从0搭建vite-vue3-ts项目框架:配置less+svg+pinia+vant+axios 文档同步项目gitee:https://gitee.com/lixin_ajax/vue3-vite-ts-pinia-vant-less.git 一、Eslint:用于检测代码 安装eslint相关依赖...
rules:{'vue/max-attributes-per-line':[2,{singleline:10,multiline:{max:1,allowFirstLine:false}}],'vue/singleline-html-element-content-newline':'off','vue/multiline-html-element-content-newline':'off','vue/name-property-casing':['error','PascalCase'],'vue/no-v-html':'off','accesso...
'vue/attribute-hyphenation': 0, // 忽略属性连字 'vue/max-attributes-per-line':[2, { singleline: 10, multiline: { max: 1, allowFirstLine: false } }], // 每行最大属性 'vue/singleline-html-element-content-newline': 'off', // 单行html元素内容在新的一行 ...
max-attributes-per-line Does this change cause the rule to produce more or fewer warnings? More How will the change be implemented? (New option, new default behavior, etc.)? Lower the minimum value onsingleline/singleline.maxto 0 on the schema. ...
eslint-plugin-vue Version: master Node Version: any What did you do? Please include the actual source code causing the issue. I use the strongly-recommended rule that enables max-attributes-per-line. It should default to 3 attributes in the singleline case, according to the docs: There is...