Skip to content

LINT: Add Biome formatter and linter - #46

Merged
bguidolim merged 1 commit into
bruno/MEMORY-USAGE-trackingfrom
bruno/LINT-biome-formatter
Oct 16, 2026
Merged

bguidolim merged 1 commit into
bruno/MEMORY-USAGE-trackingfrom
bruno/LINT-biome-formatter

Conversation

@bguidolim

Copy link
Copy Markdown
Collaborator

Why

The hooks and tests had a typechecker but nothing kept their style consistent, so each change drifted a little. Biome now formats the TypeScript and JSON files and lints them with its recommended rule set, and CI fails on any warning.

Only code and JSON are in scope. Markdown and YAML are left alone because the skills, templates and manifest ship to users, and reformatting them would trigger update notices and could break the byte-identical shared blocks.

The few lint fixes in the hooks keep behavior the same: outside those edits, the code parses to the same syntax tree as before.

Stacked on #45; merge that first.

Test plan

  • Run npm ci && npm run lint → expect no diagnostics
  • Add a ! non-null assertion to any hook and run npm run lint → expect a failure

- Format TS and JSON with Biome (line width 140) and lint with its recommended rules
- Replace non-null assertions and a value-returning forEach without changing hook behavior
- Run lint as its own CI job alongside the test matrix
@bguidolim
bguidolim added this pull request to stack #47 October 15, 2026 16:11
@bguidolim
bguidolim merged commit a14a868 into main Oct 16, 2026
5 checks passed
@bguidolim
bguidolim deleted the bruno/LINT-biome-formatter branch October 16, 2026 08:12
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