Skip to content

Hooks clarification #77

Open
Open

Description

@serl

Hello, I'm new to biome, sorry in advance as I'm probably asking for something obvious.

What are the 4 hooks really? I looked to the biome CLI doc and I think I have an answer, happy to open a PR to update the documentation if you agree.

  • biome-format just formatting, rewrites the files
  • biome-lint just apply linting rules, rewrites the files
  • biome-ci both of the above, BUT read-only
  • biome-check format and lint, rewriting the files

Is that correct? Thanks :)

Activity

  1. Guiorgy commented on Mar 1, 2026

    @Guiorgy
  2. serl commented on Mar 20, 2026

    @serl
    Author

    Indeed, but I think that could be clearer. I opened a PR to show what I mean.

  3. Guiorgy commented on Mar 20, 2026

    @Guiorgy

    that could be clearer. I opened a PR to show what I mean.

    Better docs are always welcome, though your initial issue comment made it sound like there's no explanation at all.

  4. serl commented on Mar 23, 2026

    @serl
    Author

    Yep, I'm sorry.

    I think that the thing that got me off-tracks is that ci checks, check formats and fixes, format formats and lint fixes. No problem with the last two, but frankly one could suspect that the first two are swapped (I'd expect that "check checks" you know).

    Adding a couple of words to the description could help new users IMO (would have saved me some time for sure)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions