Skip to content
Open
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
9 changes: 9 additions & 0 deletions .biomeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
dist
build
coverage
.next
.turbo
.vite
*.lock
bun.lock
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches: ['**']
pull_request:
branches: [main]

jobs:
lint:
name: Biome Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: '1.3.1'
- run: bun install --frozen-lockfile
- run: bunx @biomejs/biome check .

typecheck:
name: TypeScript Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: '1.3.1'
- run: bun install --frozen-lockfile
- run: bunx turbo typecheck
45 changes: 20 additions & 25 deletions .../generation-based-subscription/.gitignore → .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# Dependencies
node_modules/
jspm_packages/

# Build outputs
dist/
dist-ssr/
build/
out/
.next/

# Turbo
.turbo

# Vite
.vite

# Environment variables
.env
Expand Down Expand Up @@ -45,52 +53,39 @@ pids
*.seed
*.pid.lock

# Coverage directory used by tools like istanbul
# Coverage
coverage/
*.lcov

# nyc test coverage
.nyc_output

# Dependency directories
jspm_packages/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
# Optional caches
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Stores VSCode versions used for testing VSCode extensions
# Misc
*.tgz
.node_repl_history
.vscode-test

# Temporary folders
tmp/
temp/

# Package managers - ALWAYS use bun in this project
package-lock.json
yarn.lock
pnpm-lock.yaml

# TanStack / Nitro specific
.nitro
.tanstack
.wrangler
.output
.vinxi
14 changes: 14 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

# Biome: format and lint staged files
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(ts|tsx|json|js|jsx|css)$' || true)

if [ -n "$STAGED_FILES" ]; then
echo "Running Biome check on staged files..."
echo "$STAGED_FILES" | xargs bunx @biomejs/biome check --write --no-errors-on-unmatched
echo "$STAGED_FILES" | xargs git add
fi

# TypeScript: typecheck all workspaces
echo "Running typecheck..."
bunx turbo typecheck
42 changes: 42 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"formatter": {
"enabled": true,
"indentWidth": 2,
"indentStyle": "space",
"lineWidth": 70,
"lineEnding": "lf"
},
"linter": {
"enabled": true,
"rules": {
"recommended": false
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "double",
"semicolons": "asNeeded",
"trailingCommas": "es5",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false
}
},
"json": {
"formatter": {
"enabled": true
}
},
"css": {
"parser": {
"tailwindDirectives": true
}
}
}
Loading