Skip to content

Commit 75149f4

Browse files
authored
feat: add support for GraphQL files (#8)
1 parent 0e49a2d commit 75149f4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.pre-commit-hooks.yaml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ repos:
4343
hooks:
4444
- id: local-biome-check
4545
name: biome check
46-
entry: npx biome check --apply --files-ignore-unknown=true --no-errors-on-unmatched
46+
entry: npx biome check --write --files-ignore-unknown=true --no-errors-on-unmatched
4747
language: system
4848
types: [text]
49-
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css)$"
49+
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$"
5050
```
5151

5252
The pre-commit option `files` is optional,

0 commit comments

Comments
 (0)