Skip to content

Instantly share code, notes, and snippets.

@ipetinate
Last active January 28, 2021 18:31
Show Gist options
  • Save ipetinate/4be4e78a040938f6d960ac2c9151edc4 to your computer and use it in GitHub Desktop.
Save ipetinate/4be4e78a040938f6d960ac2c9151edc4 to your computer and use it in GitHub Desktop.
My favorite Prettier and VSCode config
{
"tabWidth": 2,
"useTabs": false,
"semi": false,
"jsxBracketSameLine": false,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true
}
{
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"editor.tabSize": 2,
"editor.renderWhitespace": "all",
"editor.autoClosingBrackets": "always",
"editor.autoClosingOvertype": "always",
"editor.autoClosingQuotes": "always",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"html.format.endWithNewline": true,
"html.format.indentInnerHtml": true,
"javascript.format.insertSpaceAfterConstructor": true,
"javascript.format.semicolons": "remove",
"typescript.format.semicolons": "remove",
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.cursorBlinking": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Dracula",
"editor.fontFamily": "\"Hack\", monospace",
"terminal.integrated.fontFamily": "\"Hack\", monospace",
"window.zoomLevel": 0,
"editor.fontSize": 13,
"debug.console.fontSize": 13,
"eslint.lintTask.enable": true,
"eslint.debug": true,
"explorer.confirmDragAndDrop": false,
"javascript.updateImportsOnFileMove.enabled": "always",
"workbench.preferredDarkColorTheme": "Dracula",
"git.enableSmartCommit": true,
"git.autofetch": true,
"git.confirmSync": false,
"launch": {
"configurations": [],
"compounds": []
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.renameOnType": true,
"C_Cpp.updateChannel": "Insiders",
"explorer.confirmDelete": false,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"explorer.compactFolders": false,
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"typescript.updateImportsOnFileMove.enabled": "always",
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.gotoLocation.multipleReferences": "goto",
"javascript.preferences.importModuleSpecifierEnding": "minimal",
"javascript.preferences.quoteStyle": "single",
"javascript.referencesCodeLens.enabled": true,
"editor.minimap.enabled": false,
"liveServer.settings.donotShowInfoMsg": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment