lefthook.yml
pre-commit:
parallel: true
commands:
lint:
glob: "*.{js,ts,jsx,tsx}"
run: npx eslint --fix {staged_files}
types:
glob: "*.{js,ts, jsx, tsx}"
run: npx tsc --noEmit
prettier:
glob: "*.{js,ts,jsx,tsx}"
run: npx prettier --write {staged_files}
commit-msg:
parallel: true
commands:
commitlint:
run: npx commitlint --edit