vue webstrom报错 Expected indentation of 2 spaces but found 4
"indent": ["error", 2]
- gives manyExpected indentation of 2 spaces but found 4
"indent": ["error", 4]
- gives manyExpected indentation of 4 spaces but found 8
"indent": ["error", 8]
- gives manyExpected indentation of 8 spaces but found 4
解决方法 \node_modules\eslint-config-standard\eslintrc.json
"indent": [
"error",
4,
{"SwitchCase": 1}
]
参考链接:https://stackoverflow.com/questions/44737710/how-to-configure-eslint-indent-for-webstorm
评论
发表评论