vscode-standard: autoFixOnSave not working!
-
StandardJS version? 12.0.1
-
VSCode version? 1.32.1
-
StandardJS configuration?

-
What do you have in the
OUTPUTpanel?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 25 (3 by maintainers)
Hi. If you use VSCode, you should check the following steps:
Install the StandardJS in VSCode Extensions Market.
Install standard:
npm install -g standard/semistandardConfigure your VSCode settings like that:
{ “editor.formatOnSave”: true, “javascript.validate.enable”: false, “standard.autoFixOnSave”: true }
Restart your VSCode
This one actually works: https://github.com/numso/prettier-standard-vscode
Make sure in your
settings.json, you DO NOT auto-runonSaveand auto-fixonSavelike this:instead, simply use:
Having them both enabled on save will conflict with one another, preventing the auto-fix to work after you save the file. So, just set the auto-fix
trueand set the auto-runonType.That was it for me, thank you! Auto fixing works for me with only this in my
workspaces .vscode/settings.json:Looks like right now adding only this:
solves the issue
Building on @mesqueeb’s suggestion, this is what I did to get this working:
npm install --save-dev eslint eslint-config-standard eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node(ugh, just “standard” was so much nicer){ "extends": "standard" }in a.eslintrcto my projectsettings.json:The only thing that worked for me was using regular ESLint, and just use the standard config for that. Then I had to set my VSCode settings to this:
that was the only setup that worked for me which actually auto fixes my formatting on save! good luck!! 😉
I believe if this package ever works, it might make the setup easier & usable without requiring an eslint setup?