Skip to content

Commit

Permalink
Enable StandardJS auto fix on save
Browse files Browse the repository at this point in the history
Annoyingly the extension for VSCode doesn't hook into the standard
formatting API but instead uses it's own key bindings so you cannot set
it to format when pressing the format hotkey. Auto fix on save will have
to do for now.

Discussion on the issue tracker here:
standard/vscode-standard#9
  • Loading branch information
reece-bennett committed Dec 7, 2021
1 parent fb69ff1 commit 85d1031
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@
"javascript.preferences.quoteStyle": "single",
"files.insertFinalNewline": true,
"javascript.validate.enable": false,
"editor.defaultFormatter": "standard.vscode-standard",
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
}
"standard.autoFixOnSave": true,
}

0 comments on commit 85d1031

Please sign in to comment.