Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from prettier to Biome #304

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
repos:
# Hooks that are run everywhere
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8 # Only update together with the pre-commit yaml in the tempalate!
- repo: https://github.com/biomejs/pre-commit
rev: v0.4.0
hooks:
- id: prettier
- id: biome-format
additional_dependencies: ["@biomejs/[email protected]"]
# Hooks that are run for scripts
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
Expand Down
7 changes: 7 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"formatter": {
"indentStyle": "space",
"indentWidth": 4
}
}
7 changes: 4 additions & 3 deletions {{cookiecutter.project_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ default_stages:
- push
minimum_pre_commit_version: 2.16.0
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
- repo: https://github.com/biomejs/pre-commit
rev: v0.4.0
hooks:
- id: prettier
- id: biome-format
additional_dependencies: ["@biomejs/[email protected]"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
hooks:
Expand Down
Loading