Skip to content

Commit

Permalink
VSCode workspace configuration (#253)
Browse files Browse the repository at this point in the history
* Consolidate language-specific formatter settings using multi-language syntax

- Utilize VS Code's multi-language syntax for more concise configuration
- Combine identical formatter settings for TS, JS, and JSON files
- Remove redundant single-language configurations

Docs: https://code.visualstudio.com/docs/getstarted/settings#_multiple-languagespecific-editor-settings

* Add essential VSCode extensions

- Add curated list of recommended extensions
- Include extensions for linting, formatting, debugging, and PR management
- Document each group of extension's purpose with comments

Docs: https://code.visualstudio.com/docs/editor/extension-marketplace#_workspace-recommended-extensions

* Added extension for MDX authoring

* Added Prisma extension

* Tailwind CSS intellisense

* Removed comments from extensions file to satisfy Biome

* Reverted back to multiple defaultFormatter because of some weird issues

* Sorted extensions and settings, removed empty lines

* Update extensions.json

---------

Co-authored-by: Hayden Bleasel <[email protected]>
  • Loading branch information
gnify and haydenbleasel authored Nov 18, 2024
1 parent 4c80f37 commit 203a421
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"biomejs.biome",
"bradlc.vscode-tailwindcss",
"Prisma.prisma",
"unifiedjs.vscode-mdx",
"mikestead.dotenv",
"christian-kohler.npm-intellisense"
]
}
27 changes: 14 additions & 13 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"emmet.showExpandedAbbreviation": "never",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"[typescript]": {
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"[jsonc]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[jsonc]": {
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"tailwindCSS.experimental.configFile": "./packages/tailwind-config/config.ts"
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"emmet.showExpandedAbbreviation": "never",
"prettier.enable": false,
"tailwindCSS.experimental.configFile": "./packages/tailwind-config/config.ts",
"typescript.tsdk": "node_modules/typescript/lib"
}

0 comments on commit 203a421

Please sign in to comment.