Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 19 additions & 21 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
// 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": "Node.js & PostgreSQL",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
"name": "Node.js & PostgreSQL",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// This can be used to network with other containers or with the host.
// "forwardPorts": [3000, 5432],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
"containerEnv": {
"VISUAL": "code --wait"
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": { "zsh": { "path": "/bin/zsh" } }
},
"extensions": ["cweijan.vscode-mysql-client2"]
}
},
"features": {
"ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {}
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ yarn-error.log*
.vercel
.vscode
.env*.local

tsconfig.tsbuildinfo
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm exec lint-staged
5 changes: 5 additions & 0 deletions .lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
'*': 'prettier --ignore-unknown --write',
'**/*.{js,jsx,ts,tsx}': 'pnpm lint:fix',
'**/*.{ts,tsx}': () => 'pnpm type-check',
};
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"singleQuote": true,
"importOrder": [
"<THIRD_PARTY_MODULES>",
"^@/(.*)$",
"^[.](.*)"
],
"importOrderCaseInsensitive": true,
"importOrderSeparation": true,
"importOrderSortSpecifiers": false,
"plugins": ["@trivago/prettier-plugin-sort-imports"]
}
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"db:push": "drizzle-kit push",
"db:pull": "drizzle-kit pull",
"db:check": "drizzle-kit check",
"db:up": "drizzle-kit up"
"db:up": "drizzle-kit up",
"prepare": "husky && husky install",
"type-check": "tsc --noEmit"
},
"dependencies": {
"@ai-sdk/fireworks": "^0.1.8",
Expand Down Expand Up @@ -91,6 +93,7 @@
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@tailwindcss/typography": "^0.5.15",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/d3-scale": "^4.0.8",
"@types/node": "^22.8.6",
"@types/papaparse": "^5.3.15",
Expand All @@ -103,6 +106,8 @@
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-tailwindcss": "^3.17.5",
"husky": "^9.1.7",
"lint-staged": "^15.4.3",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"tsx": "^4.19.1",
Expand Down
Loading
Loading