vue项目启动esLint验证 switch .. case 报错解决

211 阅读1分钟

废话不多说, 上图

image.png

报错的原因是 switch .. case 的空格报错 indent

解决方法 在报错的文件第一行添加 /* eslint-disable */