diff --git a/.eslintrc.cjs b/.eslintrc.cjs index a3076615..d0585ee1 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -5,6 +5,7 @@ module.exports = { "plugin:compat/recommended", "plugin:import/recommended", "plugin:lit/recommended", + "plugin:no-unsanitized/DOM", "plugin:prettier/recommended", ], plugins: ["prettier"], diff --git a/package.json b/package.json index ee68e20a..16dc444c 100644 --- a/package.json +++ b/package.json @@ -78,6 +78,7 @@ "eslint-plugin-compat": "~3.13.0", "eslint-plugin-import": "~2.25.2", "eslint-plugin-lit": "~1.6.1", + "eslint-plugin-no-unsanitized": "~3.2.0", "eslint-plugin-prettier": "~4.0.0", "gulp": "^4.0.2", "gulp-cache": "^1.1.3", @@ -85,7 +86,7 @@ "gulp-execa": "^3.0.2", "gulp-html-minifier-terser": "^6.0.1", "gulp-imagemin": "^8.0.0", - "hugo-extended": "0.88.1-patch1", + "hugo-extended": "github:jakejarvis/hugo-extended#reinstall-on-error", "lint-staged": "^11.2.3", "markdownlint-cli": "~0.29.0", "mini-css-extract-plugin": "^2.4.2", diff --git a/yarn.lock b/yarn.lock index 7f717ffb..22b3bc8f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2315,23 +2315,21 @@ caniuse-api@^3.0.0: lodash.uniq "^4.5.0" caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001179, caniuse-lite@^1.0.30001251, caniuse-lite@^1.0.30001264, caniuse-lite@^1.0.30001265: - version "1.0.30001269" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001269.tgz#3a71bee03df627364418f9fd31adfc7aa1cc2d56" - integrity sha512-UOy8okEVs48MyHYgV+RdW1Oiudl1H6KolybD6ZquD0VcrPSgj25omXO1S7rDydjpqaISCwA8Pyx+jUQKZwWO5w== + version "1.0.30001270" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001270.tgz#cc9c37a4ec5c1a8d616fc7bace902bb053b0cdea" + integrity sha512-TcIC7AyNWXhcOmv2KftOl1ShFAaHQYcB/EPL/hEyMrcS7ZX0/DvV1aoy6BzV0+16wTpoAyTMGDNAJfSqS/rz7A== -careful-downloader@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/careful-downloader/-/careful-downloader-1.4.0.tgz#11a8c75c1084d8d703d534012cd076d2dae0f455" - integrity sha512-JaMSAmHK4KjcZdtH8aja3lezqyMdFI5zR/SH/Ve4VoyFu9ycqe/DOm8gpW3Kfmq5DuSm2utTPN/Pjn+J6P6bIQ== +careful-downloader@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/careful-downloader/-/careful-downloader-2.0.1.tgz#2e2ad890108ba881895837f01865de978a9e1b91" + integrity sha512-nSvCrtMhl3Mtkif2RyOdswyvWQpgPO03fAym/5p0g84YWKf4gpulAjxPwiDfT8BRuoIVRBXUJtVTNnWI2jC0ig== dependencies: debug "^4.3.2" decompress "^4.2.1" fs-extra "^10.0.0" got "^11.8.2" - is-path-in-cwd "^4.0.0" - sumchecker "^3.0.1" + is-path-inside "^4.0.0" tempy "^2.0.0" - url-parse "^1.5.3" caw@^2.0.0, caw@^2.0.1: version "2.0.1" @@ -3708,6 +3706,11 @@ eslint-plugin-lit@~1.6.1: parse5-htmlparser2-tree-adapter "^6.0.1" requireindex "^1.2.0" +eslint-plugin-no-unsanitized@~3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-no-unsanitized/-/eslint-plugin-no-unsanitized-3.2.0.tgz#a74239ae51363a5edbe6920eb34fe09aab925a9c" + integrity sha512-92opuXbjWmXcod94EyCKhp36V1QHLM/ArAST2ssgKOojALne0eZvSPfrg4oyr0EwTXvy0RJNe/Tkm33VkDUrKQ== + eslint-plugin-prettier@~4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz#8b99d1e4b8b24a762472b4567992023619cb98e0" @@ -5225,12 +5228,11 @@ https-proxy-agent@^5.0.0: agent-base "6" debug "4" -hugo-extended@0.88.1-patch1: +"hugo-extended@github:jakejarvis/hugo-extended#reinstall-on-error": version "0.88.1-patch1" - resolved "https://registry.yarnpkg.com/hugo-extended/-/hugo-extended-0.88.1-patch1.tgz#3b1b2704b20d693bfcb5b41a369b116c4c37896c" - integrity sha512-bIOt660NhhvRK63GYieEkTMXSinODubpsxh8umm7yTU3sJFYDCVYG7L7eKn6foaT6zt8D9Cvrpz8HEHCOZs00A== + resolved "https://codeload.github.com/jakejarvis/hugo-extended/tar.gz/0ecddf5b1e78fe1fa2190cea5e9db1bc9e622be3" dependencies: - careful-downloader "^1.4.0" + careful-downloader "^2.0.1" log-symbols "^5.0.0" read-pkg-up "^9.0.0" @@ -5762,13 +5764,6 @@ is-path-cwd@^2.2.0: resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-2.2.0.tgz#67d43b82664a7b5191fd9119127eb300048a9fdb" integrity sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ== -is-path-in-cwd@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-4.0.0.tgz#e5a97a09cf34655d7bab7204e6c3997d834ef0b6" - integrity sha512-FjDhtYysbIKBKRFCQN8NcMaHHWfwAzJLOrRAhzd4hnK6Y1979p6ZthIUqdPjCyAk5jvrmY2fn56Y+kFE8RdsrA== - dependencies: - is-path-inside "^4.0.0" - is-path-inside@^3.0.2: version "3.0.3" resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" @@ -6464,7 +6459,7 @@ log-update@^4.0.0: slice-ansi "^4.0.0" wrap-ansi "^6.2.0" -logalot@^2.0.0, logalot@^2.1.0: +logalot@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/logalot/-/logalot-2.1.0.tgz#5f8e8c90d304edf12530951a5554abb8c5e3f552" integrity sha1-X46MkNME7fElMJUaVVSruMXj9VI= @@ -7309,13 +7304,12 @@ optionator@^0.9.1: word-wrap "^1.2.3" optipng-bin@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/optipng-bin/-/optipng-bin-7.0.0.tgz#2dfcc68a5f006e7746e76ad64d317d6fb7c7f9ed" - integrity sha512-mesUAwfedu5p9gRQwlYgD6Svw5IH3VUIWDJj/9cNpP3yFNbbEVqkTMWYhrIEn/cxmbGA3LpZrdoV2Yl8OfmnIA== + version "7.0.1" + resolved "https://registry.yarnpkg.com/optipng-bin/-/optipng-bin-7.0.1.tgz#beb8e55a52f8a26f885ee57ab44fcf62397d6972" + integrity sha512-W99mpdW7Nt2PpFiaO+74pkht7KEqkXkeRomdWXfEz3SALZ6hns81y/pm1dsGZ6ItUIfchiNIP6ORDr1zETU1jA== dependencies: bin-build "^3.0.0" bin-wrapper "^4.0.0" - logalot "^2.0.0" ordered-read-streams@^1.0.0: version "1.0.1" @@ -9655,13 +9649,6 @@ sugarss@^2.0.0: dependencies: postcss "^7.0.2" -sumchecker@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/sumchecker/-/sumchecker-3.0.1.tgz#6377e996795abb0b6d348e9b3e1dfb24345a8e42" - integrity sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg== - dependencies: - debug "^4.1.0" - supports-color@8.1.1, supports-color@^8.0.0: version "8.1.1" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c"