Files
tiny-pattern-ts/lefthook.yml
T
tmu 6c67e91e68 🔥 Remove Vite scaffold leftovers
- Delete public/vite.svg, src/typescript.svg, src/style.css
- Empty public/ directory removed
- .npmignore: drop 'public/' entry (directory no longer exists), add
  .oxlintrc.json and .oxfmtrc.json to ignore list
- cspell: add .oxfmtrc, .oxlintrc, .sortpackagerc to dictionary so
  config-file name references aren't flagged
- lefthook: drop 'outdated' from pre-commit (kept in commands block for
  explicit CI invocation); it shouldn't block commits for being behind on
  upstream patch releases
2026-09-03 10:28:08 +00:00

29 lines
749 B
YAML

pre-commit:
parallel: true
jobs:
- name: oxlint
glob: "*.{ts,tsx,js,jsx,mjs,cjs}"
run: npx oxlint {staged_files}
- name: oxfmt
glob: "*.{ts,tsx,js,jsx,mjs,cjs}"
run: npx oxfmt --check {staged_files}
- name: cspell
run: npx cspell {staged_files}
- name: sort-package-json
run: npx sort-package-json --check
- name: typecheck
run: npx tsc --noEmit
commands:
typecheck:
run: npm run check:tsc
spell:
run: npm run check:cspell
sort:
run: npm run check:package
lint:
run: npm run check:oxlint
format:
run: npm run check:oxfmt
outdated:
run: npm run check:outdated