Skip to content

Commit

Permalink
Merge pull request #83 from yamada-ui/feat/post-merge
Browse files Browse the repository at this point in the history
Update hooks and extend post-merge actions
  • Loading branch information
hirotomoyamada authored Aug 12, 2024
2 parents 3aeb5a3 + 4e68c59 commit 180ac46
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions lefthook.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
pre-commit:
piped: true
commands:
format:
prettier:
priority: 1
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,yml,yaml,md,mdx,json,html,css}"
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,yml,yaml,md,mdx,json,html,css}"
run: |
pnpm prettier {staged_files} --write
stage_fixed: true

lint:
eslint:
priority: 2
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts}"
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}"
run: |
pnpm eslint {staged_files} --max-warnings=0 --fix
pnpm eslint {staged_files} --max-warnings=0 --fix --cache
stage_fixed: true

commit-msg:
commands:
"lint commit message":
commitlint:
run: pnpm commitlint --edit {1}

post-merge:
commands:
pnpm:
glob: "{package.json,pnpm-lock.yaml}"
run: pnpm install

0 comments on commit 180ac46

Please sign in to comment.