diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index defe5c7..3368ae6 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -3,22 +3,22 @@ entry: biome ci --files-ignore-unknown=true --no-errors-on-unmatched language: node types: [text] - files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro)$" + files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$" - id: biome-check name: biome check entry: biome check --write --files-ignore-unknown=true --no-errors-on-unmatched language: node types: [text] - files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro)$" + files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$" - id: biome-format name: biome format entry: biome format --write --files-ignore-unknown=true --no-errors-on-unmatched language: node types: [text] - files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro)$" + files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$" - id: biome-lint name: biome lint entry: biome lint --write --files-ignore-unknown=true --no-errors-on-unmatched language: node types: [text] - files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro)$" + files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$" diff --git a/README.md b/README.md index 2798743..17cb078 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,10 @@ repos: hooks: - id: local-biome-check name: biome check - entry: npx biome check --apply --files-ignore-unknown=true --no-errors-on-unmatched + entry: npx biome check --write --files-ignore-unknown=true --no-errors-on-unmatched language: system types: [text] - files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css)$" + files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$" ``` The pre-commit option `files` is optional,