Skip to content

chore(lint): use ultracite CLI instead of biome directly#66

Merged
AZagatti merged 1 commit into
mainfrom
chore/use-ultracite-cli
Jun 24, 2026
Merged

chore(lint): use ultracite CLI instead of biome directly#66
AZagatti merged 1 commit into
mainfrom
chore/use-ultracite-cli

Conversation

@AZagatti

Copy link
Copy Markdown
Collaborator

Follow-up to #65. Per Ultracite's recommendations (checked via context7), route the lint/format scripts and the lefthook pre-commit hook through the ultracite CLI instead of calling biome directly.

  • lintultracite check ./src
  • formatultracite fix ./src
  • pre-commit → pnpm ultracite fix {staged_files} (ultracite already adds --no-errors-on-unmatched)
  • Dropped redundant lint:fix (format already runs ultracite fix)

Why ./src and not the bare command: ultracite check with no path lints the whole repo because ultracite/biome/core sets includes: ["**"] (which merges over ours), pulling in the examples/ demo. Restricting via a "**" override in biome.jsonc trips Biome's own noBiomeFirstException rule, so an explicit ./src path is the clean way to preserve the prior src-only scope.

Also removes the dead jest.config.cjs (suite runs on Vitest; ts-jest is gone and nothing references it) — surfaced while running the bare ultracite check.

Verified

pnpm lint (ultracite check) · ✅ pnpm format (idempotent) · ✅ build · ✅ 110 tests · ✅ tsc · ✅ e2e · ✅ pre-commit hook live test

🤖 Generated with Claude Code

Per Ultracite's recommendations, route the scripts and the lefthook hook
through the `ultracite` CLI rather than invoking `biome` directly:
- lint  -> `ultracite check ./src`
- format -> `ultracite fix ./src`
- pre-commit hook -> `pnpm ultracite fix {staged_files}` (ultracite already
  passes --no-errors-on-unmatched, so the flag is dropped)

Scoped to ./src on purpose: `ultracite check` with no path lints the whole
repo (ultracite/biome/core sets includes to ["**"], which merges over ours),
which would pull in the examples demo. Restricting via a "**" override in
biome.jsonc trips Biome's own noBiomeFirstException rule, so an explicit
path is the clean way to keep the prior src-only scope.

Also remove the dead jest.config.cjs (the suite runs on Vitest; ts-jest is
no longer a dependency and nothing references it).

Dropped the redundant lint:fix script (format already runs ultracite fix).

Verified: lint, format (idempotent), build, 110 tests, tsc, e2e, and the
pre-commit hook all pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@AZagatti AZagatti merged commit 2698e4f into main Jun 24, 2026
2 checks passed
@AZagatti AZagatti deleted the chore/use-ultracite-cli branch June 24, 2026 02:16
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 91.413%. remained the same — chore/use-ultracite-cli into main

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.

2 participants