Skip to content

Commit

Permalink
fix: formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
yamcodes committed Oct 9, 2023
1 parent b4becf5 commit e375e49
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 60 deletions.
122 changes: 64 additions & 58 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -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"
}
8 changes: 6 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@
"quoteStyle": "single"
}
},
"json": {
"parser": {
"allowComments": true
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
},
"ignore": [".devcontainer*", ".vscode/**/*", "node_modules/**/*"]
}
}
}

0 comments on commit e375e49

Please sign in to comment.