1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 18:15:17 +00:00
conky/lefthook.yml
2024-04-28 15:22:59 -04:00

25 lines
617 B
YAML

pre-commit:
parallel: true
commands:
web-linter:
run: |
npx -y 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,hh,cpp}'
misc-linter:
run: |
npx -y prettier --write {staged_files} \
&& git add {staged_files}
glob: '*.{md,json,yml,yaml}'
nix-linter:
run: |
alejandra -q {staged_files} \
&& git add {staged_files}
glob: '*.{nix}'