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
4 changes: 2 additions & 2 deletions .mise/tasks/format
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
#MISE description="Format code with Prettier"
prettier --write "src/**/*.ts"
#MISE description="Format code with Biome"
biome format --write .
4 changes: 2 additions & 2 deletions .mise/tasks/lint
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
#MISE description="Run ESLint"
eslint . --ext .ts
#MISE description="Run Biome lint"
biome lint .
4 changes: 2 additions & 2 deletions .mise/tasks/lint:fix
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
#MISE description="Run ESLint with auto-fix"
eslint . --ext .ts --fix
#MISE description="Run Biome lint with auto-fix"
biome lint --write .
8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0"
}
}
19 changes: 13 additions & 6 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
- **Test**: `mise run test` or `bun test`
- **Single Test**: `bun test BackgroundTask.test.ts` (use file glob pattern)
- **Watch Mode**: `bun test --watch`
- **Lint**: `mise run lint` (eslint)
- **Fix Lint**: `mise run lint:fix` (eslint --fix)
- **Format**: `mise run format` (prettier)
- **Lint**: `mise run lint` or `bun run lint` (biome)
- **Fix Lint**: `mise run lint:fix` or `bun run lint:fix` (biome --write)
- **Format**: `mise run format` or `bun run format` (biome format --write)
- **Check (Lint + Format)**: `bun run check` (biome check --write)

## PR & Commit Guidelines

- **Conventional Commits**: Use conventional commit messages (e.g., `fix:`, `feat:`, `chore:`, `docs:`, `refactor:`, `test:`, `revert:`).
- **PR Titles**: PR titles MUST follow conventional commit format (e.g., `fix: descriptive title`). This is enforced by GitHub checks.
- **Workflow**: Run `bun run check` and `bun run test` before creating a PR.

## Code Style Guidelines

Expand All @@ -18,11 +25,11 @@
- Group imports: external libraries first, then internal modules
- Use explicit file extensions (`.ts`) for internal imports

### Formatting (Prettier)
### Formatting (Biome)

- **Single quotes** (`singleQuote: true`)
- **Single quotes** (`quoteStyle: 'single'`)
- **Line width**: 100 characters
- **Tab width**: 2 spaces
- **Tab width**: 2 spaces (indentStyle: 'space')
- **Trailing commas**: ES5 (no trailing commas in function parameters)
- **Semicolons**: enabled

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,4 @@ Then re-run `/sync-pull` or `/sync-push`.
- `bun run build`
- `bun run test`
- `bun run lint`

42 changes: 42 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": { "includes": ["**", "!!**/dist"] },
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 100,
"attributePosition": "auto",
"bracketSameLine": false,
"bracketSpacing": true,
"expand": "auto",
"useEditorconfig": true
},
"linter": { "enabled": true, "rules": { "recommended": true } },
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "es5",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto",
"bracketSpacing": true
}
},
"html": {
"formatter": {
"indentScriptAndStyle": false,
"selfCloseVoidElements": "always"
}
},
"assist": {
"enabled": true,
"actions": { "source": { "organizeImports": "on" } }
}
}
Loading
Loading