-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom-config.js
More file actions
78 lines (65 loc) · 2.16 KB
/
custom-config.js
File metadata and controls
78 lines (65 loc) · 2.16 KB
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
import ImageAltTextCheck from './audits/image-alt-text-check.js';
const config = {
extends: 'lighthouse:default',
audits: [ImageAltTextCheck],
categories: {
'custom-accessibility': {
title: 'Custom Accessibility Checks',
description: 'Custom audits to check accessibility aspects like alt text.',
auditRefs: [
{ id: 'image-alt-text-check', weight: 1 }
]
}
}
};
export default config;
// import audits from './audits/image-alt-text-check.js';
// // const customCategories = {
// // 'custom-accessibility': {
// // title: 'Custom Accessibility Checks',
// // description: 'Custom audits to check accessibility aspects like button names, alt text, labels, and more.',
// // auditRefs: audits.map(audit => ({
// // id: audit.meta.id,
// // weight: 1, // Adjust weighting based on importance
// // })),
// // },
// // };
// const customCategories = {
// 'custom-accessibility': {
// title: 'Custom Accessibility Checks',
// description: 'Custom audits to check accessibility aspects like button names, alt text, labels, and more.',
// auditRefs: [
// { id: 'image-alt-text-check', weight: 1 }, // Reference the Audit
// ],
// },
// };
// const config = {
// extends: 'lighthouse:default',
// audits: audits,
// categories: customCategories,
// };
// export default config;
// const customCategories = {
// 'custom-accessibility': {
// title: 'Custom Accessibility Checks',
// description: 'Custom audits to check accessibility aspects like button names, alt text, labels, and more.',
// auditRefs: [
// { id: 'button-accessibility', weight: 1 }, // Reference the Audit
// ],
// },
// };
// import AllButtons from './gatherers/button-elements.js';
// import ButtonAccessibilityAudit from './audits/button-accessibility.js';
// export default {
// extends: 'lighthouse:default',
// passes: [
// {
// passName: 'defaultPass',
// gatherers: [AllButtons], // Include the Gatherer
// },
// ],
// audits: [ButtonAccessibilityAudit], // Include the Audit
// categories: {
// ...customCategories, // Include the custom category
// },
// };