1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-17 22:32:10 +00:00
seirdy.one/linter-configs/hintrc
Rohan Kumar a3e4729b6c
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.
2023-11-23 18:40:01 -08:00

129 lines
2.7 KiB
Text

{
"connector": {
"name": "puppeteer",
"options": {
"browser": "Chromium",
"headless": true,
"puppeteerOptions": {"args": ["--no-sandbox"]}
}
},
"extends": [
"web-recommended"
],
"formatters": [
"codeframe"
],
"hints": {
"apple-touch-icons": "off",
"axe/aria": "off",
"axe/color": "off",
"axe/forms": "off",
"axe/keyboard": "off",
"axe/language": "off",
"axe/name-role-value": "off",
"axe/semantics": "off",
"axe/sensory-and-visual-cues": "off",
"axe/structure": "off",
"axe/tables": "off",
"axe/text-alternatives": "off",
"axe/time-and-media": "off",
"axe/parsing": "off",
"compat-api/css": [
"error",
{
"ignore": [
"contain",
"contain-intrinsic-size",
"content-visibility: auto",
"image-rendering: pixelated",
"text-size-adjust: none"
]
}
],
"compat-api/html": [
"error",
{
"ignore": [
"a[download]",
"a[referrerpolicy]",
"a[translate]",
"code[translate]",
"samp[translate]",
"span[translate]",
"img[decoding]",
"meta[name=theme-color]"
]
}
],
"doctype": "error",
"http-cache": [
"error",
{
"maxAgeTarget": 10800
}
],
"http-compression": ["error", {
"resource": {
"zopfli": false
},
"html": {
"zopfli": false
}
}],
"https-only": "error",
"sri": "error",
"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",
"manifest-app-name": "error",
"minified-js": "off",
"meta-viewport": "error",
"no-bom": "error",
"no-p3p": "error",
"no-protocol-relative-urls": "error",
"no-friendly-error-pages": "error",
"no-vulnerable-javascript-libraries": "off",
"html-checker": "off",
"image-optimization-cloudinary": "off",
"no-disallowed-headers": "error",
"meta-charset-utf-8": "error",
"disown-opener": "error",
"content-type": ["error", {
".*\\.svg": "image/svg+xml"
}],
"no-html-only-headers": [ "error",
{
"ignore": ["content-security-policy"]
}],
"performance-budget": [
"error",
{
"connectionType": "3GSlow",
"loadTime": 11
}
],
"css-prefix-order": "error",
"scoped-svg-styles": "error",
"button-type": "error",
"strict-transport-security": "error",
"x-content-type-options": "error",
"typescript-config/is-valid": "off",
"typescript-config/no-comment": "off",
"typescript-config/target": "off",
"typescript-config/strict": "off",
"typescript-config/import-helpers": "off",
"stylesheet-limits": [
"error",
{
"maxRules": 100,
"maxSheets": 2,
"maxImports": 0
}
],
"ssllabs": "off"
}
}