-
Notifications
You must be signed in to change notification settings - Fork 58
Chore: Migrate to biome #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
5215f35
225c876
eba259d
fc68e31
aab63b6
06c80ed
26d86e6
cacc55e
246e556
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: Format Check | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| jobs: | ||
| format: | ||
| name: Biome Format | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v1 | ||
| with: | ||
| bun-version: 1.2.20 | ||
|
|
||
| - name: Install dependencies | ||
| run: bun install | ||
|
|
||
| - name: Run format check | ||
| run: bun run format:check | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Lint Check | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lint: | ||
| name: Biome Lint | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v1 | ||
| with: | ||
| bun-version: 1.2.20 | ||
|
|
||
| - name: Install dependencies | ||
| run: bun install | ||
|
|
||
| - name: Run lint check | ||
| run: bun run lint | ||
|
||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,24 @@ | ||
| { | ||
| "typescript.tsdk": "node_modules/typescript/lib" | ||
| "typescript.tsdk": "node_modules/typescript/lib", | ||
| "editor.formatOnSave": true, | ||
| "editor.defaultFormatter": "biomejs.biome", | ||
| "editor.codeActionsOnSave": { | ||
| "source.fixAll.biome": "explicit", | ||
| "source.organizeImports.biome": "explicit" | ||
| }, | ||
| "[javascript]": { | ||
| "editor.defaultFormatter": "biomejs.biome" | ||
| }, | ||
| "[javascriptreact]": { | ||
| "editor.defaultFormatter": "biomejs.biome" | ||
| }, | ||
| "[typescript]": { | ||
| "editor.defaultFormatter": "biomejs.biome" | ||
| }, | ||
| "[typescriptreact]": { | ||
| "editor.defaultFormatter": "biomejs.biome" | ||
| }, | ||
| "[json]": { | ||
| "editor.defaultFormatter": "biomejs.biome" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -134,8 +134,10 @@ bun run dev # Start development server | |
| bun run build # Create production build | ||
| bun run start # Start production server | ||
| bun run preview # Build and preview production | ||
| bun run lint # Run ESLint | ||
| bun run lint:fix # Auto-fix ESLint issues | ||
| bun run lint # Run Biome linter | ||
| bun run lint:fix # Auto-fix Biome lint issues | ||
| bun run format # Format with Biome | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Script
|
||
| bun run check # Run full Biome check (lint + format + imports) | ||
| SUPABASE_PROJECT_ID=your-project-id bun run db:types # Generate DB types | ||
| bun run db:migration # Create migration | ||
|
|
||
|
|
@@ -186,4 +188,4 @@ If you need help or have questions: | |
| ## License | ||
| This project is licensed under the Apache License, Version 2.0 - see the [LICENSE](LICENSE) file for details. | ||
|
|
||
| Copyright 2025 FoundryLabs, Inc. | ||
| Copyright 2025 FoundryLabs, Inc. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| { | ||
| "$schema": "https://biomejs.dev/schemas/2.4.4/schema.json", | ||
| "vcs": { | ||
| "enabled": true, | ||
| "clientKind": "git", | ||
| "useIgnoreFile": true | ||
| }, | ||
| "formatter": { | ||
| "enabled": true, | ||
| "indentStyle": "space", | ||
| "indentWidth": 2 | ||
| }, | ||
| "linter": { | ||
| "enabled": true, | ||
| "rules": { | ||
| "recommended": true, | ||
| "a11y": { | ||
| "noLabelWithoutControl": "warn", | ||
| "noStaticElementInteractions": "warn", | ||
| "noSvgWithoutTitle": "warn", | ||
| "useButtonType": "warn", | ||
| "useIframeTitle": "warn", | ||
| "useKeyWithClickEvents": "warn" | ||
| }, | ||
| "correctness": { | ||
| "useExhaustiveDependencies": "warn", | ||
| "useHookAtTopLevel": "warn" | ||
| }, | ||
| "performance": { | ||
| "noAccumulatingSpread": "warn", | ||
| "noImgElement": "warn" | ||
| }, | ||
| "security": { | ||
| "noDangerouslySetInnerHtml": "warn", | ||
| "noDangerouslySetInnerHtmlWithChildren": "warn" | ||
| }, | ||
| "style": { | ||
| "noNonNullAssertion": "warn" | ||
| }, | ||
| "suspicious": { | ||
| "noArrayIndexKey": "off", | ||
| "noCommentText": "warn", | ||
| "noExplicitAny": "warn", | ||
| "useIterableCallbackReturn": "warn" | ||
| } | ||
| } | ||
cursor[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| "assist": { | ||
| "actions": { | ||
| "source": { | ||
| "organizeImports": "on" | ||
| } | ||
| } | ||
| }, | ||
| "javascript": { | ||
| "formatter": { | ||
| "quoteStyle": "single", | ||
| "semicolons": "asNeeded", | ||
| "trailingCommas": "es5" | ||
| } | ||
| }, | ||
| "json": { | ||
| "formatter": { | ||
| "enabled": true | ||
| }, | ||
| "parser": { | ||
| "allowComments": false, | ||
| "allowTrailingCommas": false | ||
| } | ||
| }, | ||
| "css": { | ||
| "parser": { | ||
| "tailwindDirectives": true | ||
| } | ||
| } | ||
| } | ||


Uh oh!
There was an error while loading. Please reload this page.