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]
},
本文提供了三种解决CLI3.0+环境下出现的Expected indentation of 0 spaces but found 2错误的方法,包括修改index.js、注释webpack.base.conf.js中的配置以及调整.eslintrc.js文件。
2940

被折叠的 条评论
为什么被折叠?



