15 lines
502 B
YAML
15 lines
502 B
YAML
pre-commit:
|
|
parallel: true
|
|
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}
|
|
- name: mix format
|
|
glob: '*.{ex,exs}'
|
|
run: mix format --check-formatted
|
|
- name: typos
|
|
glob: '*.{md,txt}'
|
|
run: typos {staged_files}
|
|
- name: actionlint
|
|
glob: '.github/workflows/*.{yml,yaml}'
|
|
run: actionlint {staged_files}
|