-
Notifications
You must be signed in to change notification settings - Fork 551
Expand file tree
/
Copy path.lefthook.yml
More file actions
59 lines (51 loc) · 1.27 KB
/
.lefthook.yml
File metadata and controls
59 lines (51 loc) · 1.27 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
pre-commit:
parallel: true
jobs:
- name: prettier
run: npx prettier --write --cache --ignore-unknown {staged_files}
stage_fixed: true
- name: eslint
run: npx eslint --fix --cache {staged_files}
glob:
- "*.js"
- "*.jsx"
- "*.ts"
- "*.tsx"
stage_fixed: true
- name: eslint (global)
run: npx eslint --fix --cache .
glob: .eslintrc.cjs
stage_fixed: true
- name: stylelint
run: npx stylelint --fix --cache {staged_files}
glob: "*.scss"
stage_fixed: true
- name: stylelint (global)
run: npx stylelint --fix '**/*.scss' --cache --ignore-path .gitignore
glob: .stylelintrc.json
stage_fixed: true
pre-push:
piped: true
jobs:
- run: yarn install
- name: lint
group:
parrallel: true
jobs:
- name: eslint
run: npx eslint --cache
- name: stylelint
run: npx stylelint '**/*.scss' --cache --ignore-path .gitignore
- name: tsc
run: yarn check:tsc
post-merge:
only:
- ref: main
commands:
yarn-install:
run: yarn install --ignore-scripts
rari-postinstall:
run: npm run postinstall --prefix node_modules/@mdn/rari
output:
- summary
- failure