使用ESlint警告:Require self-closing on Vue.js custom components

解决方式:配置eslintrc.js;添加配置内容如下:;参考文章[# 关于nuxt报错Require self-closing on HTML elements (

) vue/html-self-closing的解决方法
]

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

你可能感兴趣的:(使用ESlint警告:Require self-closing on Vue.js custom components)