1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 17:47:09 +00:00
conky/lefthook.yml
Brenden Matthews bd5b7c87fa
Update/fix some web stuff. (#1429)
* Update/fix some web stuff.

Also added lefthook with some linting config.

* Add note about lefthook.

* Enable sort imports eslint rule.

* This statement is untrue

* Remove cypress video, add to gitignore

* Add web CI action

* Set the right dir here

* Try this
2023-02-25 20:12:11 -05:00

20 lines
487 B
YAML

pre-commit:
commands:
web-linter:
parallel: true
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}'