refactor: update devcontainer and Biome configuration (#27)

- Remove ESLint and Prettier in favor of Biome
- Configure Biome as default formatter for TS/JS/JSON/MD
- Add development helper extensions
- Update VSCode settings for Biome integration

Closes #27
This commit is contained in:
Peter Wood
2025-05-04 08:39:31 -04:00
parent 377cc63465
commit f2c0373640
4 changed files with 96 additions and 10 deletions

View File

@@ -1,8 +1,8 @@
{
"name": "Finance App Development",
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
"workspaceFolder": "/home/acedanger/dev/finance",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/acedanger/dev/finance,type=bind,consistency=cached",
"image": "ghcr.io/acedanger/finance-devcontainer:latest",
"workspaceFolder": "/workspaces/finance",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/finance,type=bind,consistency=cached",
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
@@ -16,27 +16,39 @@
"GitHub.copilot",
"GitHub.copilot-chat",
"ms-vscode.vscode-typescript-next",
"bradlc.vscode-tailwindcss"
"bradlc.vscode-tailwindcss",
"biomejs.biome",
"PKief.material-icon-theme",
"Gruntfuggly.todo-tree",
"humao.rest-client"
],
"settings": {
"editor.formatOnSave": true,
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": null,
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
},
"[javascript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": null,
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
},
"[astro]": {
"editor.defaultFormatter": "astro-build.astro-vscode"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[markdown]": {
"editor.defaultFormatter": "biomejs.biome"
},
"typescript.updateImportsOnFileMove.enabled": "always",
"editor.bracketPairColorization.enabled": true,
"files.exclude": {
@@ -48,7 +60,14 @@
"terminal.integrated.defaultProfile.linux": "bash",
"mcp.servers.github": {
"command": "docker",
"args": ["run", "-i", "--rm", "--env-file", "${containerWorkspaceFolder}/.devcontainer/.env", "ghcr.io/github/github-mcp-server"],
"args": [
"run",
"-i",
"--rm",
"--env-file",
"${containerWorkspaceFolder}/.devcontainer/.env",
"ghcr.io/github/github-mcp-server"
],
"env": {}
}
}
@@ -58,8 +77,9 @@
"postCreateCommand": "npm install && npm run check",
"remoteUser": "node",
"mounts": [
"type=bind,source=${localEnv:HOME}/.ssh,target=/home/node/.ssh,readonly"
"type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/node/.ssh,readonly"
],
"updateRemoteUserUID": true,
"remoteEnv": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${localEnv:GITHUB_PERSONAL_ACCESS_TOKEN}"
},