diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1981045..825c526 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,7 +8,6 @@ "vscode": { "extensions": [ "astro-build.astro-vscode", - "biomejs.biome-vscode", "GitHub.copilot", "GitHub.copilot-chat", "ms-vscode.vscode-typescript-next", @@ -16,14 +15,23 @@ ], "settings": { "editor.formatOnSave": true, - "editor.defaultFormatter": "biomejs.biome-vscode", + "[typescript]": { + "editor.formatOnSave": true, + "editor.defaultFormatter": null, + "editor.codeActionsOnSave": { + "source.fixAll": true + } + }, + "[javascript]": { + "editor.formatOnSave": true, + "editor.defaultFormatter": null, + "editor.codeActionsOnSave": { + "source.fixAll": true + } + }, "[astro]": { "editor.defaultFormatter": "astro-build.astro-vscode" }, - "editor.codeActionsOnSave": { - "source.organizeImports.biome": true, - "quickfix.biome": true - }, "typescript.updateImportsOnFileMove.enabled": "always", "editor.bracketPairColorization.enabled": true, "files.exclude": { @@ -37,6 +45,7 @@ } }, "forwardPorts": [3000], - "postCreateCommand": "npm install", - "remoteUser": "node" + "postCreateCommand": "npm install && npm run check", + "remoteUser": "node", + "mounts": ["type=bind,source=${localEnv:HOME}/.ssh,target=/home/node/.ssh,readonly"] } diff --git a/astro.config.mjs b/astro.config.mjs index ab1ab61..9c94ae0 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,7 +1,7 @@ // @ts-check import { defineConfig } from 'astro/config'; -import node from '@astrojs/node'; // Import Node adapter +import node from '@astrojs/node'; import react from '@astrojs/react'; @@ -9,7 +9,7 @@ import react from '@astrojs/react'; export default defineConfig({ output: 'server', adapter: node({ - mode: 'standalone' + mode: 'standalone', }), integrations: [react()], vite: { diff --git a/biome.json b/biome.json index dff6a0e..0aa1bc2 100644 --- a/biome.json +++ b/biome.json @@ -29,11 +29,6 @@ } }, "files": { - "ignore": [ - "dist", - "node_modules", - ".astro", - "coverage" - ] + "ignore": ["dist", "node_modules", ".astro", "coverage"] } -} \ No newline at end of file +}