解决vue “Expected indentation of 0 spaces but found 2”报错问题 eslint报错 发现项目中并没有eslintrc.js文件。可以通过以下方式进行解决: 在package.json文件中的rules中添加几句 “no-unused-vars”: “off”, “no-undef”: “off”, “indent”: “off” 再重新npm install ---->npm run serve 重启就可以了,不会再出现此报错