Files
hermes-agent/lefthook.yml
Teknium 7adb97f22a chore(hooks): web lint hook no longer grabs website/ files
lefthook's `root: web/` is a string-prefix filter, so `website/sidebars.ts`
matched it, was rewritten to `.site/sidebars.ts`, and eslint aborted the
commit ("No files matching the pattern"). Every docs PR that registers a
page in the sidebar hit it. Anchoring the glob to `web/**` keeps web/
files linted and leaves website/ alone.
2026-10-11 04:41:20 -07:00

36 lines
852 B
YAML

pre-commit:
jobs:
- name: lint python
glob: "*.py" # glob filter
run: ruff check --config ./ruff.pre-commit.toml {staged_files}
- name: lint web
root: web/
glob: "web/**/*.{js,ts,tsx}"
run: npx eslint {staged_files}
- name: lint bootstrap installer
root: apps/bootstrap-installer/
glob: "*.{js,ts,tsx}"
run: npx eslint {staged_files}
- name: lint desktop app
root: apps/desktop/
glob: "*.{js,ts,tsx}"
run: npx eslint {staged_files}
- name: lint tui
root: ui-tui/
glob: "*.{js,ts,tsx}"
run: npx eslint {staged_files}
- name: lint shared
root: apps/shared/
glob: "*.{js,ts,tsx}"
run: npx eslint {staged_files}
- name: lint tests
root: tests-js/
glob: "*.{js,ts,tsx}"
run: npx eslint {staged_files}