mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +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:
parent
ba7453ca23
commit
a3e4729b6c
3 changed files with 21 additions and 16 deletions
|
@ -24,7 +24,7 @@ LIGHTHOUSE_ARGS += --budget-path linter-configs/budget.json --output html --outp
|
||||||
|
|
||||||
hint-online:
|
hint-online:
|
||||||
@echo "Running webhint"
|
@echo "Running webhint"
|
||||||
@hint --config linter-configs/hintrc $(URLS)
|
hint --config linter-configs/hintrc $(URLS)
|
||||||
lighthouse:
|
lighthouse:
|
||||||
mkdir -p $(CHROME_PROFILE)
|
mkdir -p $(CHROME_PROFILE)
|
||||||
CHROME_PATH=$(CHROME_PATH) CHROME_PROFILE=$(CHROME_PROFILE) JS_FLAGS='' lighthouse $(URLS) $(LIGHTHOUSE_ARGS)
|
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"
|
@echo "Running axe with Firefox"
|
||||||
@scripts/bin/axe-ff $(OUTPUT_DIR) $(URLS)
|
@scripts/bin/axe-ff $(OUTPUT_DIR) $(URLS)
|
||||||
|
|
||||||
|
|
||||||
.PHONY: axe axe-ff
|
.PHONY: axe axe-ff
|
||||||
|
|
||||||
.PHONY: all-extra
|
.PHONY: all-extra
|
||||||
all-extra: axe-ff validate-json equal-access htmlproofer lint-css validate-feeds
|
all-extra: axe-ff equal-access lint-local
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
> 0.1%
|
> 0.1%
|
||||||
last 5 versions
|
last 5 versions
|
||||||
Firefox ESR
|
Firefox >= 57
|
||||||
|
iOS >= 9.1
|
||||||
not dead
|
not dead
|
||||||
IE 9-11
|
IE 11
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
"name": "puppeteer",
|
"name": "puppeteer",
|
||||||
"options": {
|
"options": {
|
||||||
"browser": "Chromium",
|
"browser": "Chromium",
|
||||||
"headless": true
|
"headless": true,
|
||||||
|
"puppeteerOptions": {"args": ["--no-sandbox"]}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"extends": [
|
"extends": [
|
||||||
|
@ -43,8 +44,6 @@
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"time",
|
|
||||||
"picture",
|
|
||||||
"a[download]",
|
"a[download]",
|
||||||
"a[referrerpolicy]",
|
"a[referrerpolicy]",
|
||||||
"a[translate]",
|
"a[translate]",
|
||||||
|
@ -52,7 +51,6 @@
|
||||||
"samp[translate]",
|
"samp[translate]",
|
||||||
"span[translate]",
|
"span[translate]",
|
||||||
"img[decoding]",
|
"img[decoding]",
|
||||||
"meta[name=color-scheme]",
|
|
||||||
"meta[name=theme-color]"
|
"meta[name=theme-color]"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -64,12 +62,20 @@
|
||||||
"maxAgeTarget": 10800
|
"maxAgeTarget": 10800
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"http-compression": "off",
|
"http-compression": ["error", {
|
||||||
|
"resource": {
|
||||||
|
"zopfli": false
|
||||||
|
},
|
||||||
|
"html": {
|
||||||
|
"zopfli": false
|
||||||
|
}
|
||||||
|
}],
|
||||||
"https-only": "error",
|
"https-only": "error",
|
||||||
"sri": "error",
|
"sri": "error",
|
||||||
"detect-css-reflows": "off",
|
"no-http-redirects": "error",
|
||||||
"detect-css-reflows/layout": "off",
|
"detect-css-reflows/layout": "hint",
|
||||||
"detect-css-reflows/paint": "off",
|
"detect-css-reflows/paint": "hint",
|
||||||
|
"detect-css-reflows/composite": "hint",
|
||||||
"manifest-exists": "error",
|
"manifest-exists": "error",
|
||||||
"manifest-file-extension": "error",
|
"manifest-file-extension": "error",
|
||||||
"manifest-is-valid": "error",
|
"manifest-is-valid": "error",
|
||||||
|
@ -83,10 +89,7 @@
|
||||||
"no-vulnerable-javascript-libraries": "off",
|
"no-vulnerable-javascript-libraries": "off",
|
||||||
"html-checker": "off",
|
"html-checker": "off",
|
||||||
"image-optimization-cloudinary": "off",
|
"image-optimization-cloudinary": "off",
|
||||||
"no-disallowed-headers": [ "error",
|
"no-disallowed-headers": "error",
|
||||||
{
|
|
||||||
"ignore": ["x-frame-options"]
|
|
||||||
}],
|
|
||||||
"meta-charset-utf-8": "error",
|
"meta-charset-utf-8": "error",
|
||||||
"disown-opener": "error",
|
"disown-opener": "error",
|
||||||
"content-type": ["error", {
|
"content-type": ["error", {
|
||||||
|
|
Loading…
Reference in a new issue