generated from NaverPayDev/ts-monorepo-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlefthook.yml
More file actions
23 lines (21 loc) · 832 Bytes
/
lefthook.yml
File metadata and controls
23 lines (21 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Configure lefthook
# @see https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
# Note: commit-msg hook takes a single parameter,
# the name of the file that holds the proposed commit log message.
# @see https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md#git-arguments
commit-msg:
commands:
commit-helper:
run: 'npx --yes @naverpay/commit-helper {1}'
pre-commit:
parallel: true
commands:
lint:
glob: '*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,yaml,yml}'
run: pnpm eslint {staged_files}
prettier:
glob: '*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,json,yaml,yml}'
run: pnpm prettier --check {staged_files}
markdownlit:
glob: '*.md'
run: pnpm markdownlint {staged_files}