forked from mdn/fred
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.lefthook.yml
More file actions
60 lines (51 loc) · 1.37 KB
/
.lefthook.yml
File metadata and controls
60 lines (51 loc) · 1.37 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
60
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}
stage_fixed: true
- name: eslint (global)
run: npx eslint --fix --cache .
glob: eslint.config.js
stage_fixed: true
- name: lit-analyzer
run: npm run lit-analyzer -- {staged_files}
glob: "components/**/*.js"
- name: stylelint
run: npx stylelint --fix --cache {staged_files}
glob: "*.css"
stage_fixed: true
- name: stylelint (global)
run: npx stylelint --fix '**/*.css' --cache --ignore-path .gitignore
glob: stylelint.config.js
stage_fixed: true
pre-push:
piped: true
jobs:
- run: npm install
- name: lint
group:
parallel: true
jobs:
- name: eslint
run: npx eslint --cache
- name: lit-analyzer
run: npm run lit-analyzer -- components
- name: stylelint
run: npx stylelint '**/*.css' --cache --ignore-path .gitignore
- name: tsc
run: npx tsc
post-merge:
only:
- ref: main
commands:
npm-install:
run: npm install --ignore-scripts
rari-postinstall:
run: npm run postinstall --prefix node_modules/@mdn/rari
output:
- summary
- failure