Skip to content

Commit cecdef3

Browse files
committed
feat: update vue rules
1 parent b75947f commit cecdef3

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

src/configs/vue.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -140,20 +140,20 @@ export async function vue(
140140
'vue/dot-notation': ['error', { allowKeywords: true }],
141141
'vue/eqeqeq': ['error', 'smart'],
142142
'vue/html-indent': ['error', indent],
143-
// 'vue/html-self-closing': [
144-
// 'error',
145-
// {
146-
// html: {
147-
// component: 'always',
148-
// normal: 'always',
149-
// void: 'any',
150-
// },
151-
// math: 'always',
152-
// svg: 'always',
153-
// },
154143
'vue/html-quotes': ['error', 'double'],
155-
// ],
156-
// 'vue/max-attributes-per-line': 'off',
144+
'vue/html-self-closing': [
145+
'error',
146+
{
147+
html: {
148+
component: 'always',
149+
normal: 'always',
150+
void: 'any',
151+
},
152+
math: 'always',
153+
svg: 'always',
154+
},
155+
],
156+
'vue/max-attributes-per-line': 'off',
157157
'vue/multi-word-component-names': 'off',
158158
// 'vue/next-tick-style': ['warn', 'promise'],
159159
'vue/no-constant-condition': 'warn',
@@ -205,6 +205,7 @@ export async function vue(
205205
},
206206
],
207207
'vue/require-prop-types': 'off',
208+
// 'vue/singleline-html-element-content-newline': 'off',
208209
'vue/space-infix-ops': 'error',
209210
'vue/space-unary-ops': ['error', { nonwords: false, words: true }],
210211
'vue/valid-define-options': 'warn',

0 commit comments

Comments
 (0)