wrath/lefthook.yml

14 lines
407 B
YAML

pre-commit:
commands:
prettier-js:
glob: "*.{js,jsx,ts,tsx,astro}"
run: npx prettier --write {staged_files}
eslint-fix:
glob: "*.{js,jsx,ts,tsx,astro}"
run: npx eslint --fix {staged_files}
eslint:
glob: "*.{js,jsx,ts,tsx,astro}"
run: npx eslint {staged_files}
prettier-other:
glob: "*.{json,css,md}"
run: npx prettier --write {staged_files}