diff --git a/lefthook.yaml b/lefthook.yaml new file mode 100644 index 0000000..020e8c0 --- /dev/null +++ b/lefthook.yaml @@ -0,0 +1,23 @@ +# EXAMPLE USAGE: +# +# Refer for explanation to following link: +# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md +# +# pre-push: +# commands: +# packages-audit: +# tags: frontend security +# run: yarn audit +# gems-audit: +# tags: backend security +# run: bundle audit +# +pre-commit: + parallel: true + commands: + format: + glob: "*.{js,ts,jsx,tsx}" + run: pnpm format + lint: + glob: "*.{js,ts,jsx,tsx}" + run: pnpm lint