fix(lefthook): changed hooks

This commit is contained in:
Amadeus Mader 2026-03-07 18:44:44 +01:00
parent b9fc9db537
commit 590e15c2c6

View file

@ -3,10 +3,10 @@ pre-commit:
jobs:
- name: prettier
glob: '*.{css,html,js,json,md,mjs,ts,yaml,yml}'
run: prettier --check --config=.prettierrc.js --ignore-path=.prettierignore --ignore-path=.gitignore {staged_files}
run: docker compose run --rm phx yarn run prettier --check --config=.prettierrc.js --ignore-path=.prettierignore --ignore-path=.gitignore {staged_files}
- name: mix format
glob: '*.{ex,exs}'
run: mix format --check-formatted
run: docker compose run --rm phx mix format --check-formatted
- name: typos
glob: '*.{md,txt}'
run: typos {staged_files}