Skip to content

Commit

Permalink
WebUI: require Subresource Integrity on external links
Browse files Browse the repository at this point in the history
Also migrate to .mjs format.
  • Loading branch information
Chocobo1 committed Feb 10, 2025
1 parent b052ad0 commit b098453
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/webui/www/.htmlvalidate.json

This file was deleted.

20 changes: 20 additions & 0 deletions src/webui/www/.htmlvalidate.mjs
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
});

0 comments on commit b098453

Please sign in to comment.