【发布时间】:2021-03-08 22:12:25
【问题描述】:
我想摆脱 VSCode vetur 项目中的“vue/custom-event-name-casing”警告和错误。
我已经在项目根目录创建了一个.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
我怎样才能禁用它?
【问题讨论】:
标签: vue.js visual-studio-code eslint vetur