我想摆脱“vue/自定义事件名称-大小写”警告和错误在我的VSCode vetur项目。
我在项目根目录上创建了一个具有以下内容的.eslintrc.json文件:
{
"rules": {
"vue/custom-event-name-casing": false
}
}并在config.json上设置以下配置
{
"vetur.validation.template": true
}但我仍然会犯这样的错误:
[vue/custom-event-name-casing]
Custom event name 'editGiftPrice' must be kebab-case.eslint-plugin-vue我怎么才能把这个弄干净?
发布于 2020-11-26 02:01:40
在.eslintrc.json中,可以尝试将值设置为"off"而不是false吗?
{
"rules": {
"vue/custom-event-name-casing": "off"
}
}https://stackoverflow.com/questions/65015125
复制相似问题