您当前的位置: 首页 > 热点 > > 内容页

vue3.0 如何取消eslint 的代码格式校验_焦点简讯

来源:腾讯云 发布时间: 2023-04-24 15:25:05


(相关资料图)

报错:

You may use special comments to disable some warnings.Use // eslint-disable-next-line to ignore the next line.Use /* eslint-disable */ to ignore all warnings in a file.ERROR in [eslint]C:\Users\xuhuichen\Desktop\gpyh-wechat-h5\src\components\a1.vue  1:1  error  Component name "a1" should always be multi-word  vue/multi-word-component-names

解决方法:

打开vue.config.js 文件
module.exports = {        lintOnSave: false //如果为false,就是取消eslint规则的检查  }
重启后, eslint就关闭了
关键词:
x 广告
x 广告

Copyright ©  2015-2022 每日青海网版权所有  备案号:京ICP备12018864号-37   联系邮箱:291 323 6@qq.com