cli3.0+总是报错:Expected indentation of 0 spaces but found 2如何解决
方法一
在index.js修改usesEslint,将true改成false
方法二、(适用于cli2)
在webpack.base.conf.js中将module中的usesEslint注释掉
方法三、
.eslintrc.js新增 “indent”: [“off”,2]
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
"indent": ["off",2]
},