Skip to content

Commit

Permalink
[MAINT] Replace prettier with biome; fix bad pre-commit exclusion rule (
Browse files Browse the repository at this point in the history
  • Loading branch information
peytondmurray authored Feb 4, 2025
1 parent 3f26f7b commit 822a467
Show file tree
Hide file tree
Showing 11 changed files with 466 additions and 457 deletions.
13 changes: 9 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ ci:
autofix_commit_msg: |
[pre-commit.ci] Apply automatic pre-commit fixes
exclude: |
(?x)^(
docusaurus-docs/static/openapi.json
)
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
Expand All @@ -32,8 +36,9 @@ repos:
- id: end-of-file-fixer
exclude: ".python-version-default"

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
- repo: https://github.com/biomejs/pre-commit
rev: "v0.6.1"
hooks:
- id: prettier
exclude: ^(examples/|templates/|)
- id: biome-check
additional_dependencies: ["@biomejs/biome@1.9.4"]
exclude: ^(examples/|templates/)
2 changes: 1 addition & 1 deletion docusaurus-docs/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
};
Loading

0 comments on commit 822a467

Please sign in to comment.