forked from n8n-io/n8n
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
40 lines (40 loc) · 1.2 KB
/
lefthook.yml
File metadata and controls
40 lines (40 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
pre-commit:
commands:
biome_check:
glob: 'packages/**/*.{js,ts,json}'
run: pnpm biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
stage_fixed: true
skip:
- merge
- rebase
prettier_check:
glob: 'packages/**/*.{vue,yml,md,css,scss}'
run: pnpm prettier --write --ignore-unknown --no-error-on-unmatched-pattern {staged_files}
stage_fixed: true
skip:
- merge
- rebase
styles_check:
glob: 'packages/**/*.{scss,sass,vue}'
run: pnpm lint:styles:fix
skip:
- merge
- rebase
actionlint_check:
glob: '.github/workflows/*.{yml,yaml}'
run: actionlint {staged_files}
skip:
- merge
- rebase
workspace_deps_check:
glob: '**/package.json'
run: node scripts/check-workspace-deps.mjs {staged_files}
skip:
- merge
- rebase
playwright_janitor:
glob: 'packages/testing/playwright/**/*.ts'
run: |
files=$(echo {staged_files} | tr ' ' ',')
pnpm --filter=n8n-playwright janitor --files="$files"
skip: true # Disabled for now - enable when baseline is committed