diff --git a/.devcontainer.json b/.devcontainer.json index 085dedf..e935736 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -1,63 +1,69 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node-postgres { - "name": "Bun & Postgres", - "dockerComposeFile": "docker-compose.yml", - "service": "app", - "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", - // Features to add to the dev container. More info: https://containers.dev/features. - "features": { - "ghcr.io/devcontainers/features/github-cli:1": {}, - "ghcr.io/devcontainers-contrib/features/zsh-plugins:0": { - "plugins": "zsh-completions zsh-autosuggestions zsh-syntax-highlighting", - "omzPlugins": "https://github.com/zsh-users/zsh-completions.git https://github.com/zsh-users/zsh-autosuggestions.git https://github.com/zsh-users/zsh-syntax-highlighting.git" - }, - "ghcr.io/shyim/devcontainers-features/bun:0": {}, - "ghcr.io/itsmechlark/features/postgresql:1.3.3": {} - }, + "name": "Bun & Postgres", + "dockerComposeFile": "docker-compose.yml", + "service": "app", + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/devcontainers/features/github-cli:1": {}, + "ghcr.io/devcontainers-contrib/features/zsh-plugins:0": { + "plugins": "zsh-completions zsh-autosuggestions zsh-syntax-highlighting", + "omzPlugins": "https://github.com/zsh-users/zsh-completions.git https://github.com/zsh-users/zsh-autosuggestions.git https://github.com/zsh-users/zsh-syntax-highlighting.git" + }, + "ghcr.io/shyim/devcontainers-features/bun:0": {}, + "ghcr.io/itsmechlark/features/postgresql:1.3.3": {} + }, "waitFor": "onCreateCommand", - "updateContentCommand": "bun i", - "postAttachCommand": { - "app": "bun dev", - "studio": "bun db:studio" - }, - // "postCreateCommand": "bun db:migrate && bun db:seed", - "postCreateCommand": "./scripts/create-db.sh", - "customizations": { - "vscode": { - "extensions": [ - "biomejs.biome", - "ms-azuretools.vscode-docker", - "w0o0o.bun-scripts", - "oven.bun-vscode", - "antfu.browse-lite", - "mtxr.sqltools", - "mtxr.sqltools-driver-pg", - "bierner.markdown-preview-github-styles" - ], - "settings": { - "editor.tabSize": 2, - "editor.insertSpaces": true, - "terminal.integrated.defaultProfile.linux": "zsh" - } - } - }, - "portsAttributes": { - "3000": { - "label": "App", - "onAutoForward": "openPreview" - }, - "4983": { - "label": "Studio" - }, - "5432": { - "label": "Database" - } - }, - "forwardPorts": [5432,3000,4983] - - // Configure tool-specific properties. - // "customizations": {}, - // Needed for bun install (for access to save .lockb). More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "root" + "updateContentCommand": "bun i", + "postAttachCommand": { + "app": "bun dev", + "studio": "bun db:studio" + }, + // "postCreateCommand": "bun db:migrate && bun db:seed", + "postCreateCommand": "./scripts/create-db.sh", + "customizations": { + "vscode": { + "extensions": [ + "biomejs.biome", + "ms-azuretools.vscode-docker", + "w0o0o.bun-scripts", + "oven.bun-vscode", + "antfu.browse-lite", + "mtxr.sqltools", + "mtxr.sqltools-driver-pg", + "bierner.markdown-preview-github-styles" + ], + "settings": { + "editor.tabSize": 2, + "editor.insertSpaces": true, + "terminal.integrated.defaultProfile.linux": "zsh", + "[typescript]": { + "editor.defaultFormatter": "biomejs.biome" + }, + "[json]": { + "editor.defaultFormatter": "biomejs.biome" + } + } + } + }, + "portsAttributes": { + "3000": { + "label": "App", + "onAutoForward": "openPreview" + }, + "4983": { + "label": "Studio" + }, + "5432": { + "label": "Database" + } + }, + "forwardPorts": [5432, 3000, 4983] + + // Configure tool-specific properties. + // "customizations": {}, + // Needed for bun install (for access to save .lockb). More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" } diff --git a/biome.json b/biome.json index c802a41..72ea242 100644 --- a/biome.json +++ b/biome.json @@ -13,11 +13,15 @@ "quoteStyle": "single" } }, + "json": { + "parser": { + "allowComments": true + } + }, "linter": { "enabled": true, "rules": { "recommended": true - }, - "ignore": [".devcontainer*", ".vscode/**/*", "node_modules/**/*"] + } } }