🔧 Add frontend linter pre-commit hook (#1791)
This commit is contained in:
@@ -24,6 +24,14 @@ repos:
|
||||
args:
|
||||
- --fix
|
||||
- id: ruff-format
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: local-biome-check
|
||||
name: biome check
|
||||
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|svelte|vue|astro|graphql|gql)$"
|
||||
|
||||
ci:
|
||||
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
|
||||
|
||||
Reference in New Issue
Block a user