Skip to content

Add pre-commit hook for Biome to ensure JSON formatting consistency #319

@Subham-KRLX

Description

@Subham-KRLX

Problem

We added Biome for JSON linting (#297), but there's no pre-commit hook to catch formatting issues locally before pushing.

Solution

Add Biome pre-commit hook to .pre-commit-config.yaml:

  - repo: [https://github.com/biomejs/pre-commit](https://github.com/biomejs/pre-commit)
    rev: "v0.1.0"
    hooks:
      - id: biome-check
        additional_dependencies: ["@biomejs/biome"]
        args: ["--write", "--files-ignore-unknown=true"]

Benefits
Catch formatting issues locally
Faster feedback loop
Match CI checks before pushing
Related: #297

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions