mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-10-08 01:39:57 +08:00
feat(eslint-config): should add self-closing for html void tags
This commit is contained in:
parent
27c229d733
commit
8611a8add0
@ -73,6 +73,14 @@ module.exports = {
|
|||||||
'vue/name-property-casing': ['error', 'kebab-case'],
|
'vue/name-property-casing': ['error', 'kebab-case'],
|
||||||
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
|
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
|
||||||
'vue/html-closing-bracket-newline': 2,
|
'vue/html-closing-bracket-newline': 2,
|
||||||
|
'vue/html-self-closing': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
html: {
|
||||||
|
void: 'always',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
'@typescript-eslint/no-unused-vars': ['error'],
|
'@typescript-eslint/no-unused-vars': ['error'],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user