Files
copenlight/bin/lighthouse/config.js
Ivan Carlos de Almeida 6fa41a771d
Some checks failed
Build, Push, Publish / Build & Release (push) Failing after 2s
Sync Repo / sync (push) Failing after 2s
first load
2025-12-16 04:40:00 -03:00

79 lines
2.2 KiB
JavaScript

/**
* 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",
},
],
},
},
};