nanocoder icon indicating copy to clipboard operation
nanocoder copied to clipboard

Linting & Formatting - Switch to Biome

Open mrspence opened this issue 3 months ago • 2 comments

Description

Prettier has served us really well for clean and consistent formatting of code; Biome may be a powerful improvement for us!

Use Case

Our code is formatted exactly the same, without contributors needing to consciously follow a standard. We can attach this to any pre-commits we add in the future too.

Proposed Solution

  • Replace prettier installation and configs with biome, closely matching our prettier configuration for formatting.
  • Update CONTRIBUTING.md with recommendation to install https://biomejs.dev/reference/vscode/ for developers using vscode (or a vscode flavour editor).

Additional Thoughts

  • When pre-commits are added, have Biome formatting run on the codebase automatically

mrspence avatar Oct 10 '25 16:10 mrspence

@mrspence - let me know if you think we should still do this!

will-lamerton avatar Oct 31 '25 15:10 will-lamerton

@will-lamerton definitely, can see there's some interest too 👍

Have paused to appreciate how this might impact existing contributors with prettier configs on their editors, so additional thoughts:

  1. Add pre-commit hooks to check biome formatting
  2. Add format script to package.json
  3. Guidance for existing contributors for optimal use in vscode e.t.c

Open for anyone to action for a sec, assign when ready!

mrspence avatar Oct 31 '25 15:10 mrspence

@will-lamerton can I take this issue?

akramcodez avatar Dec 14 '25 05:12 akramcodez

@akramcodez go for it!

will-lamerton avatar Dec 14 '25 10:12 will-lamerton