limit formatOnSave option to JS/TS files, add docs re: prettier

This commit is contained in:
Resi Respati
2018-08-01 12:08:55 +07:00
parent ebc46fb96e
commit 2a6b8c4a00
4 changed files with 33 additions and 9 deletions

12
.vscode/settings.json vendored
View File

@@ -1,6 +1,5 @@
{
"editor.renderWhitespace": "boundary",
"editor.formatOnSave": true,
"files.encoding": "utf8",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
@@ -11,5 +10,14 @@
"node_modules/**": true,
"typings/**": true
},
"typescript.tsdk": "./node_modules/typescript/lib"
"typescript.tsdk": "./node_modules/typescript/lib",
"[json]": {
"editor.formatOnSave": true
},
"[javascript]": {
"editor.formatOnSave": true
},
"[typescript]": {
"editor.formatOnSave": true
}
}