-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add .vscode/settings.json * Use new explicit value instead of boolean * Configure formatting of JSON files * Format HTML/CSS/YAML too * Apply suggestions from code review Co-authored-by: Jonatan Schroeder <jonatan@yorku.ca> --------- Co-authored-by: Jonatan Schroeder <jonatan@yorku.ca>
- Loading branch information
1 parent
e082fa4
commit e69a116
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
// If the following is ever addressed, we can update our config to use whatever | ||
// the official shared config is: | ||
// https://github.com/microsoft/vscode/issues/40233 | ||
|
||
// This is required to load extensions, which in turn is required to be able | ||
// to format SQL files. | ||
// https://github.com/prettier/prettier-vscode/issues/3235 | ||
"prettier.configPath": "./.prettierrc.json", | ||
|
||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "explicit" | ||
} | ||
}, | ||
|
||
"[javascript][typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
} | ||
}, | ||
|
||
"[html][css][json][yaml][sql][markdown]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
} | ||
} |