This commit is contained in:
qsh
2023-03-21 00:53:28 +08:00
parent 953377e655
commit 955687d473
171 changed files with 7149 additions and 7341 deletions

View File

@@ -24,7 +24,7 @@ module.exports = {
'vue/max-attributes-per-line': [
2,
{
singleline: 10, // 当开始标签位于单行时,每行的最大属性数
singleline: 20, // 当开始标签位于单行时,每行的最大属性数
// 当开始标签位于多行时,每行的最大属性数
multiline: {
max: 1,
@@ -75,7 +75,7 @@ module.exports = {
curly: [2, 'multi-line'], // 强制所有控制语句使用一致的括号风格
'dot-location': [2, 'property'], // 在点之前和之后执行一致的换行符
'eol-last': 2, // 要求或禁止文件末尾存在空行
eqeqeq: ['error', 'always', { null: 'ignore' }], // 要求使用 === 和 !==
// eqeqeq: ['error', 'never', { null: 'ignore' }], // 要求使用 === 和 !==
// 强制 generator 函数中 * 号周围使用一致的空格
'generator-star-spacing': [
2,
@@ -290,6 +290,8 @@ module.exports = {
objectsInObjects: false
}
],
'array-bracket-spacing': [2, 'never'] // 该规则在数组括号内强制实现一致的间距
'array-bracket-spacing': [2, 'never'], // 该规则在数组括号内强制实现一致的间距
'vue/require-default-prop': 'off',
'vue/require-prop-types': 'off'
}
};