Skip to content

Commit ddc6c41

Browse files
committed
Add --error-on-warnings to hooks
Fixes #58
1 parent 4ddd2f6 commit ddc6c41

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-hooks.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
- id: biome-ci
22
name: biome ci
3-
entry: biome ci --files-ignore-unknown=true --no-errors-on-unmatched
3+
entry: biome ci --files-ignore-unknown=true --no-errors-on-unmatched --error-on-warnings
44
language: node
55
types: [text]
66
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$"
77
require_serial: true
88
- id: biome-check
99
name: biome check
10-
entry: biome check --write --files-ignore-unknown=true --no-errors-on-unmatched
10+
entry: biome check --write --files-ignore-unknown=true --no-errors-on-unmatched --error-on-warnings
1111
language: node
1212
types: [text]
1313
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$"
1414
require_serial: true
1515
- id: biome-format
1616
name: biome format
17-
entry: biome format --write --files-ignore-unknown=true --no-errors-on-unmatched
17+
entry: biome format --write --files-ignore-unknown=true --no-errors-on-unmatched --error-on-warnings
1818
language: node
1919
types: [text]
2020
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$"
2121
require_serial: true
2222
- id: biome-lint
2323
name: biome lint
24-
entry: biome lint --write --files-ignore-unknown=true --no-errors-on-unmatched
24+
entry: biome lint --write --files-ignore-unknown=true --no-errors-on-unmatched --error-on-warnings
2525
language: node
2626
types: [text]
2727
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repos:
4040
hooks:
4141
- id: local-biome-check
4242
name: biome check
43-
entry: npx biome check --write --files-ignore-unknown=true --no-errors-on-unmatched
43+
entry: npx biome check --write --files-ignore-unknown=true --no-errors-on-unmatched --error-on-warnings
4444
language: system
4545
types: [text]
4646
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$"

0 commit comments

Comments
 (0)