報(bào)錯(cuò):
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規(guī)則的檢查
}
- 重啟后超歌, eslint就關(guān)閉了