mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
3b2121f733
This reverts commit40b2bbeb09, reversing changes made tob4c6cb17cc.
20 lines
530 B
YAML
20 lines
530 B
YAML
# Lefthook configuration
|
|
#
|
|
# Add commit hooks with `bundle exec lefthook install`
|
|
#
|
|
# Refer for explanation to following link:
|
|
# https://github.com/evilmartians/lefthook/blob/master/docs/usage.md
|
|
|
|
pre-commit:
|
|
parallel: true
|
|
commands:
|
|
eslint:
|
|
root: "frontend/"
|
|
files: git diff --name-only --staged
|
|
glob: "*.{js,ts,jsx,tsx}"
|
|
run: npx eslint {staged_files}
|
|
rubocop:
|
|
files: git diff --name-only --staged
|
|
glob: "*.rb"
|
|
run: bin/dirty-rubocop --uncommitted --force-exclusion {files}
|