Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions lefthook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,15 @@ pre-commit:
jobs:
- name: install dependencies
run: pnpm install
glob:
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml

- name: check types
run: pnpm tsc
glob:
- "*.ts"
- .npmrc
- pnpm-lock.yaml
- tsconfig.json

- name: fix formatting
run: pnpm prettier --write --ignore-unknown {staged_files}
run: pnpm prettier --write .

- name: fix lint
run: pnpm eslint --no-warn-ignored --fix {staged_files}
run: pnpm eslint --fix

- name: check diff
run: git diff --exit-code {staged_files}
run: git diff --exit-code pnpm-lock.yaml {staged_files}