Skip to content

We could add Biome using pre-commit to save CI and developer time #2558

@jbampton

Description

@jbampton

https://biomejs.dev

Biome is a fast formatter for JavaScript, TypeScript, JSX, TSX, JSON, HTML, CSS and GraphQL that scores 97% compatibility with Prettier, saving CI and developer time.

So we have JS, JSON and CSS at least:

https://biomejs.dev/internals/language-support/

Mostly written in Rust:

https://github.com/biomejs/biome

https://biomejs.dev/recipes/git-hooks/#pre-commit

It seems much more configurable than Prettier and you can configure settings for individual file types

Why do we use use tools like Biome and prettier:

"By far the biggest reason for adopting Prettier is to stop all the on-going debates over styles. It is generally accepted that having a common style guide is valuable for a project and team but getting there is a very painful and unrewarding process. People get very emotional around particular ways of writing code and nobody likes spending time writing and receiving nits."

https://prettier.io/docs/why-prettier

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions