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
28 changes: 28 additions & 0 deletions .github/workflows/biome.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Biome

on:
pull_request:
branches:
- '**'
push:
branches:
- main

jobs:
biome:
name: Biome Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.3

- name: Install dependencies
run: bun install

- name: Run Biome (CI reporter)
run: bun run biome:ci
34 changes: 34 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
"dev": "nx run-many -c development -t dev --parallel",
"build": "nx run-many -t build --parallel",
"start": "nx run-many -t start --parallel",
"format": "prettier --write . --ignore-path .gitignore"
"format": "prettier --write . --ignore-path .gitignore",
"biome:check": "biome check .",
"biome:fix": "biome check --write .",
"biome:format": "biome format --write .",
"biome:fix:unsafe": "biome check --write --unsafe .",
"biome:staged": "git diff --name-only --cached --diff-filter=ACMRTUXB | xargs -r -d '\n' biome check --write --max-diagnostics=1000",
"biome:since": "biome check --since origin/main .",
"biome:ci": "biome check --reporter=github --max-diagnostics=1000 .",
"biome:check:frontend": "biome check apps/frontend",
"biome:check:backend": "biome check apps/backend"
},
"devDependencies": {
"@nx/next": "19.6.3",
Expand Down
Loading