-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lighthouserc-pr.js
33 lines (30 loc) · 973 Bytes
/
lighthouserc-pr.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
module.exports = {
ci: {
collect: {
settings: {
skipAudits: [],
},
},
assert: {
preset: 'lighthouse:no-pwa',
assertions: {
// Minimun score for the report to be considered valid
'categories:performance': ['error', { minScore: 0.7 }],
'categories:accessibility': ['error', { minScore: 0.9 }],
'categories:seo': ['error', { minScore: 0.8 }],
// Blocking Assertions
'dom-size': ['error', { maxNumericValue: 3000 }],
'first-contentful-paint': ['error', { maxNumericValue: 1500 }],
'first-meaningful-paint': ['error', { maxNumericValue: 1500 }],
'max-potential-fid': ['error', { maxNumericValue: 1500 }],
// Ignored Assertions
// Disabled Assertions
'csp-xss': 'off',
'legacy-javascript': 'off',
'unused-javascript': 'off',
'is-crawlable': 'off',
'uses-rel-preconnect': 'off',
},
},
},
};