(資料圖)
ERROR Failed to compile with 1 error 16:17:24[eslint]C:\Users\xuhuichen\Desktop\gpyh-ec-wx-front\src\components\a1.vue 1:1 error Component name "a1" should always be multi-word vue/multi-word-component-names? 1 problem (1 error, 0 warnings)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-ec-wx-front\src\components\a1.vue 1:1 error Component name "a1" should always be multi-word vue/multi-word-component-names? 1 problem (1 error, 0 warnings)
這么多錯 全都是因為eslint嚴格格式
關閉eslint嚴格格式就好
直接在根目錄下創(chuàng)建vue.config.js文件,關鍵代碼lintOnSave: false,
const { defineConfig } = require("@vue/cli-service")module.exports = defineConfig({ lintOnSave: false,})
標簽:
要聞