1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-18 06:42:10 +00:00
seirdy.one/linter-configs/hintrc

117 lines
2.4 KiB
Text
Raw Normal View History

{
"connector": {
"name": "puppeteer",
"options": {
"browser": "Chromium",
"headless": true,
"puppeteerOptions": {"args": ["--no-sandbox"]}
}
},
"extends": [
"web-recommended"
],
"formatters": [
"codeframe"
],
"hints": {
"apple-touch-icons": "off",
"compat-api/css": [
"error",
{
"ignore": [
"contain",
"contain-intrinsic-size",
2022-07-24 18:28:23 +00:00
"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",
2021-08-01 06:59:43 +00:00
"http-cache": [
"error",
{
"maxAgeTarget": 10800
2021-08-01 06:59:43 +00:00
}
],
"http-compression": ["error", {
"resource": {
"zopfli": false
},
"html": {
"zopfli": false
}
}],
"https-only": "error",
2022-07-24 18:28:23 +00:00
"sri": "error",
"no-http-redirects": "error",
"detect-css-reflows/layout": "hint",
"detect-css-reflows/paint": "hint",
"detect-css-reflows/composite": "hint",
2022-07-24 18:28:23 +00:00
"manifest-exists": "error",
"manifest-file-extension": "error",
"manifest-is-valid": "error",
2022-07-24 18:28:23 +00:00
"manifest-app-name": "error",
"minified-js": "off",
"meta-viewport": "error",
"no-bom": "error",
"no-p3p": "error",
2022-07-24 18:28:23 +00:00
"no-protocol-relative-urls": "error",
"no-friendly-error-pages": "error",
"no-vulnerable-javascript-libraries": "off",
"html-checker": "off",
2022-07-24 18:28:23 +00:00
"image-optimization-cloudinary": "off",
"no-disallowed-headers": "error",
2022-07-24 18:28:23 +00:00
"meta-charset-utf-8": "error",
"disown-opener": "error",
"content-type": ["error", {
".*\\.svg": "image/svg+xml"
}],
2022-07-24 18:28:23 +00:00
"no-html-only-headers": [ "error",
{
"ignore": ["content-security-policy"]
}],
2021-08-01 06:59:43 +00:00
"performance-budget": [
"error",
{
"connectionType": "3GSlow",
2023-12-13 02:24:29 +00:00
"loadTime": 12
}
],
2022-07-24 18:28:23 +00:00
"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
2021-08-01 06:59:43 +00:00
}
],
"ssllabs": "off"
}
}