当vue中eslint报Disallow self-closing on HTML void elements格式错误时
我们需要在eslint中的rules里配置
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
normal: 'never',
component: 'always'
},
svg: 'always',
math: 'always'
}
],