1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 11:52:11 +00:00

Update Webhint configs

- More exact browserlist
- stop hiding "hint" execution
- Disable chromium sandbox since I'm now running it in a container and
  all content is trusted.
- Remove obsolete elements-to-ignore from the compatibility check.
- Re-enable the compression check but disable checking for Zopfli
  compression, which returns a fale-positive; I use
  efficient-compression-tool for gzip compression which is actually
  better than Zopfli.
- Stop ignoring the "X-Frame-Options" header in no-disallowed-headers,
  since I stopped sending that header.
This commit is contained in:
Rohan Kumar 2023-11-23 18:40:01 -08:00
parent ba7453ca23
commit a3e4729b6c
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
3 changed files with 21 additions and 16 deletions

View file

@ -24,7 +24,7 @@ LIGHTHOUSE_ARGS += --budget-path linter-configs/budget.json --output html --outp
hint-online:
@echo "Running webhint"
@hint --config linter-configs/hintrc $(URLS)
hint --config linter-configs/hintrc $(URLS)
lighthouse:
mkdir -p $(CHROME_PROFILE)
CHROME_PATH=$(CHROME_PATH) CHROME_PROFILE=$(CHROME_PROFILE) JS_FLAGS='' lighthouse $(URLS) $(LIGHTHOUSE_ARGS)
@ -40,8 +40,9 @@ axe-ff:
@echo "Running axe with Firefox"
@scripts/bin/axe-ff $(OUTPUT_DIR) $(URLS)
.PHONY: axe axe-ff
.PHONY: all-extra
all-extra: axe-ff validate-json equal-access htmlproofer lint-css validate-feeds
all-extra: axe-ff equal-access lint-local

View file

@ -7,6 +7,7 @@
> 0.1%
last 5 versions
Firefox ESR
Firefox >= 57
iOS >= 9.1
not dead
IE 9-11
IE 11

View file

@ -3,7 +3,8 @@
"name": "puppeteer",
"options": {
"browser": "Chromium",
"headless": true
"headless": true,
"puppeteerOptions": {"args": ["--no-sandbox"]}
}
},
"extends": [
@ -43,8 +44,6 @@
"error",
{
"ignore": [
"time",
"picture",
"a[download]",
"a[referrerpolicy]",
"a[translate]",
@ -52,7 +51,6 @@
"samp[translate]",
"span[translate]",
"img[decoding]",
"meta[name=color-scheme]",
"meta[name=theme-color]"
]
}
@ -64,12 +62,20 @@
"maxAgeTarget": 10800
}
],
"http-compression": "off",
"http-compression": ["error", {
"resource": {
"zopfli": false
},
"html": {
"zopfli": false
}
}],
"https-only": "error",
"sri": "error",
"detect-css-reflows": "off",
"detect-css-reflows/layout": "off",
"detect-css-reflows/paint": "off",
"no-http-redirects": "error",
"detect-css-reflows/layout": "hint",
"detect-css-reflows/paint": "hint",
"detect-css-reflows/composite": "hint",
"manifest-exists": "error",
"manifest-file-extension": "error",
"manifest-is-valid": "error",
@ -83,10 +89,7 @@
"no-vulnerable-javascript-libraries": "off",
"html-checker": "off",
"image-optimization-cloudinary": "off",
"no-disallowed-headers": [ "error",
{
"ignore": ["x-frame-options"]
}],
"no-disallowed-headers": "error",
"meta-charset-utf-8": "error",
"disown-opener": "error",
"content-type": ["error", {