Skip to content

Commit

Permalink
feat: allow parallel lefthook execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Heilemann committed Feb 12, 2020
1 parent 31ae632 commit db31958
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@
# https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md

pre-commit:
parallel: false
parallel: true
commands:
lint-commit:
run: commitlint --from HEAD~1
tags: commit
lint-scripts-source:
root: src/
glob: "*.{js,jsx,mdx}"
run: eslint {staged_files}
tags: lint
lint-scripts-engine:
exclude: src/
glob: "*.{js,jsx}"
run: eslint {staged_files}
tags: lint
lint-styles:
glob: "*.{scss,css}"
run: stylelint {staged_files}
tags: lint

0 comments on commit db31958

Please sign in to comment.