Skip to content

Commit 70bf3d4

Browse files
committed
Chore: Replace local pre-commit hook with biome's pre-commit hook repo
1 parent e7ad909 commit 70bf3d4

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,19 @@ repos:
3636
- id: sphinx-lint
3737
name: (docs:repo) sphinx-lint
3838
stages: [pre-commit]
39-
- repo: local
39+
- repo: https://github.com/biomejs/pre-commit
40+
rev: v2.3.13
4041
hooks:
41-
- id: biome-check-ts-js
42+
- id: biome-check
4243
name: (webtools:repo) biome check typescript/javascript
43-
entry: npx --offline --prefix webtools biome check --write ./webtools/src --config-path=./webtools/biome.json --files-ignore-unknown=true --no-errors-on-unmatched
44-
language: node
45-
types: [text]
44+
args: ["./webtools/src", "--config-path=./webtools/biome.json"]
4645
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?)$"
4746
exclude: ^docs/
4847
require_serial: true
49-
- id: biome-check-css
48+
stages: [pre-commit]
49+
- id: biome-check
5050
name: (webtools:repo) biome check css
51-
entry: npx --offline --prefix webtools biome check --write ./webtools/src --config-path=./webtools/biome.json --files-ignore-unknown=true --no-errors-on-unmatched
52-
language: node
51+
args: ["./webtools/src", "--config-path=./webtools/biome.json"]
5352
types: [text]
5453
files: "\\.(css?)$"
5554
exclude: ^docs/

webtools/biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.1/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
33
"root": false,
44
"linter": {
55
"enabled": true

0 commit comments

Comments
 (0)