mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Add frontend linter to lefthook
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user