OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lefthook.yml

19 lines
535 B

# Lefthook configuration
#
# Add commit hooks with `bundle exec lefthook install`
#
# Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.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}