mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
feat(eslint-config): should add self-closing for html void tags
This commit is contained in:
@@ -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'],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user