Skip to content

chore: Add Biome linter/formatter with pre-commit hooks#7

Merged
paveg merged 3 commits intomainfrom
chore/add-biome-lint-formatter
Jan 2, 2026
Merged

chore: Add Biome linter/formatter with pre-commit hooks#7
paveg merged 3 commits intomainfrom
chore/add-biome-lint-formatter

Conversation

@paveg
Copy link
Owner

@paveg paveg commented Jan 2, 2026

Summary

  • Add Biome as the unified linting/formatting tool (replaces ESLint + Prettier)
  • Configure accessibility (a11y) rules, unused import detection, and type import enforcement
  • Set up husky + lint-staged for pre-commit validation to ensure code quality

Changes

  • biome.json: Biome configuration with recommended rules
  • .husky/pre-commit: Pre-commit hook running lint-staged
  • package.json: New scripts (lint, lint:fix, format) and lint-staged config
  • 43 source files: Auto-fixed formatting and import organization

Test plan

  • pnpm lint passes with only warnings (no errors)
  • pnpm typecheck passes
  • pnpm build succeeds
  • Pre-commit hook validates staged files

🤖 Generated with Claude Code

- Add Biome for linting, formatting, and import organization
- Configure a11y rules, unused import detection, and type imports
- Add husky + lint-staged for pre-commit validation
- Add npm scripts: lint, lint:fix, format
- Auto-fix 43 files with formatting and import organization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 2, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
devcard ea074ec Commit Preview URL

Branch Preview URL
Jan 02 2026, 06:28 AM

paveg and others added 2 commits January 2, 2026 15:27
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Standardize vertical spacing across all card types:
- Top padding: 20px
- Title baseline: y=35
- Content start: y=55
- Bottom padding: 20px

This ensures cards align properly when displayed side by side in READMEs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@paveg paveg merged commit 5972628 into main Jan 2, 2026
2 checks passed
@paveg paveg deleted the chore/add-biome-lint-formatter branch January 2, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant