-
Notifications
You must be signed in to change notification settings - Fork 294
/
lefthook.yml
37 lines (36 loc) · 980 Bytes
/
lefthook.yml
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
# EXAMPLE USAGE:
#
# Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
#
pre-push:
commands:
# playwright-tests:
# run: npm --prefix ./curriculum-front run test:e2e
# packages-audit:
# tags: frontend security
# run: yarn audit
# gems-audit:
# tags: backend security
# run: bundle audit
#
pre-commit:
parallel: true
commands:
eslint:
glob: "*.{js,ts,jsx,tsx}"
run: npm run lint:fix {staged_files}
frontend-style:
glob: "*.{css,scss,sass}"
run: npm --prefix ./curriculum-front run stylelint {staged_files}
all-files:
parallel: true
commands:
eslint:
glob: "*.{js,ts,jsx,tsx}"
run: npm run lint:fix {all_files}
frontend-style:
glob: "*.{css,scss,sass}"
run: npm --prefix ./curriculum-front run stylelint {all_files}
playwright-tests:
run: npm --prefix ./curriculum-front run test:e2e