- yarn global add prettier
- Add vscode TSlint
cmd + shift + p
-> search user settings and add follows:
{
"workbench.iconTheme": "vscode-icons",
"window.zoomLevel": -1,
"typescript.autoImportSuggestions.enabled": false,
"editor.fontSize": 14,
"eslint.autoFixOnSave": true,
"editor.tabSize": 2,
"editor.minimap.enabled": false,
"editor.lineNumbers": "on",
"javascript.updateImportsOnFileMove.enabled": "never",
"explorer.confirmDelete": false,
"tslint.alwaysShowStatus": true,
"tslint.autoFixOnSave": true,
// Set the default
"editor.formatOnSave": true,
// Enable per-language
"[javascript]": {
"editor.formatOnSave": true
}
}