Skip to content

Commit d111ede

Browse files
committed
fix: update 'vue/html-self-closing' rule configuration
1 parent c144290 commit d111ede

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/configs/vue.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,18 @@ export async function vue(
141141
'vue/dot-notation': ['error', { allowKeywords: true }],
142142
// 'vue/define-props-declaration': ['warn', 'type-based'],
143143
'vue/eqeqeq': ['error', 'smart'],
144-
'vue/html-quotes': ['error', 'double'],
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+
],
145156
// 'vue/define-emits-declaration': ['warn', 'type-based'],
146157
'vue/max-attributes-per-line': 'off',
147158
'vue/multi-word-component-names': 'off',

0 commit comments

Comments
 (0)