VUE编译警告 Expected indentation of 8 spaces but found 12

场景:
在使用vue的过程中往往会出现这样的提示 Expected indentation of 8 spaces but found 12 一个个去修订因为太多不胜其烦
VUE编译警告 Expected indentation of 8 spaces but found 12_第1张图片

原因
因为我们在使用vue-cli 初始化的时候默认安装了ESLint(Eslint 是作为校验语法规则而存在的)也就导致了 我们使用tab缩进后, 在run 的时候有了空格提醒

解决方法
在vue项目中找到这玩意儿…(config.dev.useEslint ? [createLintingRule()] : []), 然后注释掉它
那么你会问它在哪里呢-------> webpack.base.config.js 文件中
VUE编译警告 Expected indentation of 8 spaces but found 12_第2张图片

你可能感兴趣的:(vue,vue,webpack,前端)