search

Home  >  Q&A  >  body text

javascript - vscode alt+shift+f formatted js code, what should I do if it fails the eslint code style check? . .

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?

迷茫迷茫2722 days ago1095

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-06-17 09:18:22

    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

    reply
    0
  • 高洛峰

    高洛峰2017-06-17 09:18:22

    Add "eslint.autoFixOnSave": true,

    in your vscode user settings

    reply
    0
  • Cancelreply