-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gimbalrc.yml
84 lines (78 loc) · 1.92 KB
/
.gimbalrc.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Specify audits to run. Also include any plugins (like axe)
audits:
- axe
- size
- lighthouse
- heap-snapshot
# - unused-source
configs:
logger:
level: 1
buildDir: out
comment:
# Only show failures in GitHub PR comments.
# Useful to pinpoint why a build has failed
onlyFailures: false
# Heap snapshot settings
heap-snapshot:
threshold:
Documents: 11
Frames: 5
JSHeapTotalSize: 21889024
JSHeapUsedSize: 13685832
Nodes: 1250
RecalcStyleCount: 129
LayoutCount: 35
# Lighthouse settings
lighthouse:
skipAudits:
- uses-http2
- redirects-http
- uses-long-cache-ttl
- uses-text-compression
outputHtml: ./gimbal-artifacts/lighthouse.html
threshold:
accessibility: 80
"best-practices": 80
performance: 80
pwa: 60
seo: 85
# File and directory size settings
size:
- path: out/
maxSize: 70 MB
- path: .next/service-worker.js
maxSize: 15 KB
- path: out/index.html
maxSize: 80 KB
- path: out/service-worker.js
maxSize: 15 KB
# Locations of reports. Useful for storing artifacts in CI
outputs:
# Only show failures in CLI
cli:
onlyFailures: false
html: ./gimbal-artifacts/results.html
json: ./gimbal-artifacts/results.json
markdown: ./gimbal-artifacts/results.md
# Plugins
plugins:
# Axe a11y audits
- plugin: "@modus/gimbal-plugin-axe"
thresholds:
aria-allowed-attr: critical
aria-hidden-focus: serious
color-contrast: serious
duplicate-id: minor
landmark-one-main: moderate
landmark-complementary-is-top-level: moderate
meta-viewport: critical
region: moderate
page-has-heading-one: moderate
scrollable-region-focusable: moderate
heading-order: moderate
label: critical
landmark-unique: moderate
link-name: serious
list: serious
listItem: serious