mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 02:25:09 +00:00
bd5b7c87fa
* 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
20 lines
487 B
YAML
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}'
|