0
点赞
收藏
分享

微信扫一扫

VUE:Require self-closing on HTML elements (「div」) vue/html-self-closing

A邱凌 2022-09-16 阅读 68

首先找到 .eslintrc.js文件

然后在rules中添加以下配置

"vue/html-self-closing": ["error",{
"html": {
"void": "never",
"normal": "any",
"component": "any"
},
"svg": "always",
"math": "always"
}]

VUE:Require self-closing on HTML elements (「div」) vue/html-self-closing_vue

举报

相关推荐

0 条评论