-
Notifications
You must be signed in to change notification settings - Fork 9.5k
/
Copy pathexperimental-config.js
59 lines (55 loc) · 2.36 KB
/
experimental-config.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Config for new audits that aren't quite ready for
* being enabled by default.
*/
/** @type {LH.Config} */
const config = {
extends: 'lighthouse:default',
audits: [
'autocomplete',
// Preload advice is on hold until https://github.com/GoogleChrome/lighthouse/issues/11960
'preload-fonts',
'uses-rel-preload',
],
categories: {
// @ts-ignore: `title` is required in CategoryJson. setting to the same value as the default
// config is awkward - easier to omit the property here. Will defer to default config.
'performance': {
auditRefs: [
{id: 'uses-rel-preload', weight: 0, group: 'diagnostics'},
// TODO: Remove this when insights aren't hidden by default
// Insight audits.
{id: 'cls-culprits-insight', weight: 0, group: 'insights'},
{id: 'document-latency-insight', weight: 0, group: 'insights'},
{id: 'dom-size-insight', weight: 0, group: 'insights'},
{id: 'duplicated-javascript-insight', weight: 0, group: 'insights'},
{id: 'font-display-insight', weight: 0, group: 'insights'},
{id: 'forced-reflow-insight', weight: 0, group: 'insights'},
{id: 'image-delivery-insight', weight: 0, group: 'insights'},
{id: 'interaction-to-next-paint-insight', weight: 0, group: 'insights'},
{id: 'lcp-discovery-insight', weight: 0, group: 'insights'},
{id: 'lcp-phases-insight', weight: 0, group: 'insights'},
{id: 'network-dependency-tree-insight', weight: 0, group: 'insights'},
{id: 'render-blocking-insight', weight: 0, group: 'insights'},
{id: 'slow-css-selector-insight', weight: 0, group: 'insights'},
{id: 'third-parties-insight', weight: 0, group: 'insights'},
{id: 'use-cache-insight', weight: 0, group: 'insights'},
{id: 'viewport-insight', weight: 0, group: 'insights'},
],
},
// @ts-ignore: `title` is required in CategoryJson. setting to the same value as the default
// config is awkward - easier to omit the property here. Will defer to default config.
'best-practices': {
auditRefs: [
{id: 'autocomplete', weight: 0, group: 'best-practices-ux'},
{id: 'preload-fonts', weight: 0, group: 'best-practices-ux'},
],
},
},
};
export default config;