使用ESlint警告:Require self-closing
2019-10-24 本文已影响0人
hao102
解决方式:配置eslintrc.js;添加配置内容如下:;参考文章[# 关于nuxt报错Require self-closing on HTML elements (<div>) vue/html-self-closing的解决方法
]
"vue/html-self-closing": ["error", {
"html": {
"void": "never",
"normal": "any",
"component": "any"
},
"svg": "always",
"math": "always"
}],