javascript - vscode alt+shift+f formatted js code, what should I do if it fails the eslint code style check? . .
迷茫2017-06-17 09:16:22
0
2
1122
Code style verification is required, but once it is formatted a lot, it will fail the verification. Manual formatting every time is also very troublesome. Is there any good solution?
If you just want to wrap spaces and lines, you can directly adjust the settings of vscode. Anyway, I used to do this, but I lost it when I changed the computer settings. Now I have webstorm
If you just want to wrap spaces and lines, you can directly adjust the settings of vscode. Anyway, I used to do this, but I lost it when I changed the computer settings. Now I have webstorm
Add
in your vscode user settings"eslint.autoFixOnSave": true,