Files
nextcloud-autocurrency/lefthook.yml

29 lines
742 B
YAML

pre-commit:
parallel: true
commands:
eslint:
glob: "*.{ts,vue}"
run: pnpm eslint --fix {staged_files}
stage_fixed: true
prettier:
glob: "*.{scss,vue,ts,md}"
run: pnpm prettier --write {staged_files}
stage_fixed: true
prettier-json:
glob: "*.json"
exclude: "openapi.json"
run: pnpm prettier --write {staged_files}
stage_fixed: true
php-cs-fixer:
glob: "*.php"
exclude: "/gen/"
env:
PHP_CS_FIXER_IGNORE_ENV: "1"
run: make php-cs-fixer && make test
openapi:
glob: "*Controller.php"
run: make openapi && git add openapi.json openapi-*.json
lint-appinfo:
glob: "appinfo/info.xml"
run: make lint-appinfo