Add "enabled" and "severity"/"warning" to rule in Configuration object, add corresponding documentation and tests, update demo web app (fixes #254)”.

This commit is contained in:
David Anson 2025-09-22 21:39:09 -07:00
parent c6f248321e
commit 607be34b5d
20 changed files with 3792 additions and 867 deletions

View file

@ -16,7 +16,7 @@ for (const rule in configSchema.properties) {
const subproperties = Object.fromEntries(
Object.entries(
properties.oneOf?.at(-1).properties || []
).filter(([ key ]) => key !== "severity")
).filter(([ key ]) => ((key !== "enabled") && (key !== "severity")))
);
if (Object.keys(subproperties).length > 0) {
/** @type {Object<string, any>} */