Skip to content

Commit

Permalink
Set prettier as code formatter in vscode
Browse files Browse the repository at this point in the history
Closes #834
  • Loading branch information
tomitheninja committed Aug 28, 2021
1 parent 6891dae commit 64ad123
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "mikestead.dotenv"]
"recommendations": [
"dbaeumer.vscode-eslint",
"mikestead.dotenv",
"esbenp.prettier-vscode"
]
}
12 changes: 10 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@
},
"search.exclude": {
"**/node_modules": true,
"**/dist": true,
"**/dist": true
},
"typescript.referencesCodeLens.enabled": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"files.insertFinalNewline": true,
"eslint.enable": true
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}

0 comments on commit 64ad123

Please sign in to comment.