WebUI: require Subresource Integrity on external links

Also migrate to .mjs format.

PR #22263.
This commit is contained in:
Chocobo1
2025-02-12 15:19:07 +08:00
committed by GitHub
parent 38070c6eee
commit d79dc86d00
2 changed files with 20 additions and 12 deletions

View File

@@ -1,12 +0,0 @@
{
"extends": [
"html-validate:recommended"
],
"rules": {
"input-missing-label": "error",
"long-title": "off",
"no-inline-style": "off",
"no-missing-references": "error",
"prefer-button": "off"
}
}

View File

@@ -0,0 +1,20 @@
import { defineConfig } from "html-validate";
export default defineConfig({
extends: [
"html-validate:recommended"
],
rules: {
"input-missing-label": "error",
"long-title": "off",
"no-inline-style": "off",
"no-missing-references": "error",
"prefer-button": "off",
"require-sri": [
"error",
{
target: "crossorigin"
}
]
}
});