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

报错:


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

解决方法:

  1. 打开vue.config.js 文件
  module.exports = {
        lintOnSave: false //如果为false,就是取消eslint规则的检查
  }
  1. 重启后, eslint就关闭了
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容