From f807de7f861a600b5435ecf61ef2dcc2f0e9f9fa Mon Sep 17 00:00:00 2001 From: Alex Rockhill Date: Wed, 27 Aug 2025 13:25:59 -0700 Subject: [PATCH] ENH: Add frontend linter pre-commit hook --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 512da0105c..58a2c0824c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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