1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00
conky/lefthook.yml
2023-02-28 22:44:06 -05:00

20 lines
483 B
YAML

pre-commit:
parallel: true
commands:
web-linter:
run: |
npx eslint --fix {staged_files} \
&& git add {staged_files}
root: web/
glob: '*.{ts,tsx,js,jsx}'
cpp-linter:
run: |
clang-format -i {staged_files} \
&& git add {staged_files}
glob: '*.{c,cc,cxx,h,cpp}'
misc-linter:
run: |
npx prettier --write {staged_files} \
&& git add {staged_files}
glob: '*.{md,json,yml,yaml}'