diff --git a/lefthook.yml b/lefthook.yml index 9ea061e..5766a4e 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -2,8 +2,13 @@ pre-commit: parallel: true commands: typecheck: + glob: "*.{ts,mts,cts,vue}" run: pnpm typecheck lint: - run: pnpm lint:fix + glob: "*.{ts,js,mjs,cjs,mts,cts,vue}" + run: pnpm exec eslint --fix {staged_files} + stage_fixed: true format: - run: pnpm format + glob: "*.{ts,js,mjs,cjs,cts,mts,json,md,yml,yaml,vue}" + run: pnpm exec oxfmt {staged_files} + stage_fixed: true