-
Notifications
You must be signed in to change notification settings - Fork 166
/
lighthouserc.js
38 lines (36 loc) · 1.23 KB
/
lighthouserc.js
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
module.exports = {
ci: {
assert: {
// preset: "lighthouse:no-pwa",
/* Note
// Read more assertions on:
// https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/configuration.md#assert
*/
assertions: {
"categories:performance": ["error", { minScore: 0.5 }],
"categories:accessibility": ["error", { minScore: 0.9 }],
"categories:seo": ["warn", { minScore: 0.7 }],
// Core Web Vitals
"cumulative-layout-shift": ["warn", { minScore: 0.5 }],
"largest-contentful-paint": ["warn", { minScore: 0.25 }],
"total-blocking-time": ["warn", { minScore: 0.1 }],
// disable assertion
canonical: "off",
"crawlable-anchors": "off",
"csp-xss": "off",
interactive: "off",
"is-crawlable": "off",
"legacy-javascript": "off",
"mainthread-work-breakdown": "off",
"max-potential-fid": "off",
"no-vulnerable-libraries": "off",
"uses-rel-preload": "off",
"uses-rel-preconnect": "off",
"unused-css-rules": "off",
"unused-javascript": "off",
"tap-targets": ["warn", { minScore: 0.3 }],
"dom-size": ["warn", { minScore: 0.5 }],
},
},
},
};