解决eslint fix-indent问题

使用vue-cli的时候采用eslint模式的时候,webpack格式化的时候,出现代码变红,报错, http://eslint.org/docs/rules/indent Expected indentation of 0 spaces but found 2 src/components/HelloWorld.vue:86:1 export default { ^
解决上诉问题,请在eslinkrc.js文件的rulers中配置‘indent’:0
但是,如果你不想使用eslint的话,可以手动在build/webpack.base.config.js将其注释掉,如果你有语法格式强迫症的话,那就、、、、、。。。

转载于:https://www.jianshu.com/p/14f858c6fac4

猜你喜欢

转载自blog.csdn.net/weixin_33696106/article/details/91173907
今日推荐