首页 > 资讯 > > >正文

vue3.0 如何取消eslint 的代码格式校验

2023-04-25 10:38:51 来源:腾讯云


(资料图片仅供参考)

报错:

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就关闭了

关键词:


上一篇: 做美国的盟友是啥感受?难堪、愤怒、痛楚!
下一篇: 最后一页

为您推荐
推荐阅读

资讯

行业

服务

人才