Files
nuzlocke-tracker/prek.toml
Julian Tabel 9aaa95a1c7 Add component tests for EndRunModal, GameGrid, RulesConfiguration, Layout
33 tests covering rendering, user interactions (userEvent clicks), prop
callbacks, filter state, and conditional description text. Adds a
matchMedia stub to the vitest setup file so components importing
useTheme don't throw in jsdom. Also adds actionlint and zizmor
pre-commit hooks for GitHub Actions linting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 13:57:12 +01:00

64 lines
1.4 KiB
TOML

# Configuration file for `prek`, a git hook framework written in Rust.
# See https://prek.j178.dev for more information.
#:schema https://www.schemastore.org/prek.json
[[repos]]
repo = "https://github.com/astral-sh/ruff-pre-commit"
rev = "v0.15.0"
hooks = [
{
id = "ruff",
args = ["--fix"],
files = "^backend/"
},
{
id = "ruff-format",
files = "^backend/"
}
]
[[repos]]
repo = "local"
hooks = [
{
id = "oxlint",
name = "oxlint",
entry = "npx oxlint -c frontend/.oxlintrc.json",
language = "system",
files = '^frontend/src/.*\.(ts|tsx)$',
pass_filenames = true
},
{
id = "oxfmt",
name = "oxfmt",
entry = "npx oxfmt --check --config frontend/.oxfmtrc.json",
language = "system",
files = '^frontend/src/.*\.(ts|tsx)$',
pass_filenames = true
},
{
id = "tsc",
name = "tsc",
entry = "bash -c 'cd frontend && npx tsc -b'",
language = "system",
files = '^frontend/src/.*\.(ts|tsx)$',
pass_filenames = false
},
{
id = "actionlint",
name = "actionlint",
entry = "bash -c 'actionlint'",
language = "system",
files = '^.github/workflows/.*.(yml|yaml)',
pass_filenames = false
},
{
id = "zizmor",
name = "zizmor",
entry = "bash -c 'zizmor .github/workflows/'",
language = "system",
files = '^.github/workflows/.*.(yml|yaml)',
pass_filenames = false
}
]