Skip to content

Add Biome for linting and formatting - #18

Merged
killerwolf merged 1 commit into
mainfrom
feat/biome-linting
Aug 21, 2026
Merged

Add Biome for linting and formatting#18
killerwolf merged 1 commit into
mainfrom
feat/biome-linting

Conversation

@killerwolf

Copy link
Copy Markdown
Owner

Closes #9

  • Adds @biomejs/biome (2-space indent, single quotes, matching the existing style), npm run lint / npm run format, and a lint job in CI.
  • tsconfig.json and package-lock.json are excluded from Biome's scope (auto-generated / hand-aligned comments not worth reformatting).
  • Fixing the recommended ruleset's findings touched real code, not just formatting:
    • require('fs') / require('child_process')node: protocol
    • dropped an unused catch (error) binding in build-sea.js
    • Greeter, a static-only class, became a plain sayHello() function (flagged by lint/complexity/noStaticOnlyClass) — hello.ts and the test were updated to match

Verified locally: tests pass, tsc compiles clean, full build:all still produces a working binary.

Adds @biomejs/biome with a config matching the existing style
(2-space indent, single quotes), `npm run lint`/`format` scripts, and
a lint job in CI. tsconfig.json and package-lock.json are excluded
from Biome's scope (auto-generated / heavily hand-aligned comments).

Fixing what the recommended ruleset flagged also touched actual code:
- require('fs') / require('child_process') -> node: protocol
- dropped an unused catch binding in build-sea.js
- Greeter, a static-only class, became a plain sayHello() function
  (flagged by lint/complexity/noStaticOnlyClass); hello.ts and the
  test were updated accordingly

Verified: tests pass, tsc compiles, full SEA build still works.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@killerwolf
killerwolf merged commit f00f9ff into main Aug 21, 2026
4 checks passed
@killerwolf
killerwolf deleted the feat/biome-linting branch August 21, 2026 08:33
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.

Add linting/formatting with Biome

1 participant