-
Notifications
You must be signed in to change notification settings - Fork 454
Expand file tree
/
Copy pathconfig.js
More file actions
90 lines (90 loc) · 2.55 KB
/
config.js
File metadata and controls
90 lines (90 loc) · 2.55 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
79
80
81
82
83
84
85
86
87
88
89
90
/**
* Sets lighthouse configuration
*/
module.exports = {
lighthouse: {
extends: "lighthouse:default",
settings: {
maxWaitForLoad: 10000,
onlyCategories: ["accessibility"],
disableFullPageScreenshot: true,
},
},
// custom properties
custom: {
// turn audit errors into warnings
ignore: {
tabindex: [
{
path: "*",
selector: "body.community-enabled > a.skip-navigation",
},
],
"link-in-text-block": [
{
path: "/hc/:locale/community/topics/360000644279",
selector:
"li > section.striped-list-item > span.striped-list-info > a#title-360006766859",
},
{
path: "/hc/:locale/community/topics/360000644279",
selector:
"li > section.striped-list-item > span.striped-list-info > a#title-360006766799",
},
{
path: "/hc/:locale/community/posts",
selector:
"li > section.striped-list-item > span.striped-list-info > a#title-360006766799",
},
{
path: "/hc/:locale/community/posts",
selector:
"li > section.striped-list-item > span.striped-list-info > a#title-360006766859",
},
],
"aria-allowed-attr": [
{
path: "/hc/:locale/community/posts/new",
selector:
"div#main-content > form.new_community_post > div.form-field > a.nesty-input",
},
],
"td-has-header": [
{
path: "/hc/:locale/subscriptions",
selector: "main > div.container > div#main-content > table.table",
},
],
"label-content-name-mismatch": [
{
path: "/hc/:locale/articles/:id",
selector:
"footer > div.article-votes > div.article-votes-controls > button.button",
},
],
"target-size": [
{
path: "/hc/:locale/search",
selector:
"header > div.search-result-title-container > h2.search-result-title > a",
},
{
path: "/hc/:locale/search",
selector: "nav > ol.breadcrumbs > li > a",
},
],
label: [
{
path: "/hc/:locale/requests",
selector:
"div#main-content > div.sc-koXPp > div.sc-imWYAI > input#downshift-0-input",
},
{
path: "/hc/:locale/requests",
selector:
"thead.StyledHead-sc-spf23a-0 > tr.StyledBaseRow-sc-1t4zqg4-0 > th.StyledCell-sc-8hpncx-0 > input#downshift-1-input",
},
],
},
},
};