generated from vtex-sites/base.instore
-
Notifications
You must be signed in to change notification settings - Fork 1
/
lighthouserc.js
29 lines (27 loc) · 1.19 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
const VTEXLHConfig = require('@vtex/lighthouse-config').default
const urls = ['', '/instore/login']
// https://github.com/vtex/faststore/blob/d30c59807b7f6e67b182ceeaacf9f3b777d77d4a/packages/lighthouse-config/src/index.ts#L42-L63
// https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/configuration.md
module.exports = VTEXLHConfig({
urls,
server: process.env.BASE_SITE_URL,
assertions: {
'categories:accessibility': ['error', { minScore: 0.9 }],
'categories:best-practices': ['error', { minScore: 0.8 }],
'categories:performance': ['warn', { minScore: 0.8 }],
'categories:seo': ['warn', { minScore: 0.9 }],
'color-contrast': 'warn',
'errors-in-console': 'warn',
'first-contentful-paint': ['warn', { maxNumericValue: 3000 }],
'html-has-lang': 'warn',
interactive: ['warn', { maxNumericValue: 3000 }],
'largest-contentful-paint': ['warn', { maxNumericValue: 4000 }],
'max-potential-fid': ['warn', { maxNumericValue: 300 }],
'meta-description': 'warn',
'no-unload-listeners': 'warn',
'tap-targets': 'warn',
'total-blocking-time': ['warn', { maxNumericValue: 200 }],
'unused-css-rules': 'warn',
'valid-source-maps': 'warn',
},
})