报错必须处理,警告也忍不了,发现在bulid -webpack.base.config.js 里找到
const createLintingRule = () => ({
/*test: /\.(js|vue)$/,
loader: 'eslint-loader',
enforce: 'pre',
include: [resolve('src'), resolve('test')],
options: {
formatter: require('eslint-friendly-formatter'),
emitWarning: !config.dev.showEslintErrorsInOverlay
}*/
})
注掉里边的内容,讨厌的警告即消失