mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
b03438873e
So that I'll stop upgrading it in `Gemfile.lock` and not in `frontend/package.json`. See #17681
24 lines
754 B
YAML
24 lines
754 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}
|
|
primer-view-components-version-is-the-same-everyhwere:
|
|
files: git diff --name-only --staged
|
|
glob: "{Gemfile.lock,frontend/package.json}"
|
|
run: script/check_same_primer_view_components_version_everywhere
|