From 980a6b4ec46a9a46d4b6078202acf8e8573ef5d3 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Fri, 20 Oct 2023 04:06:36 -0700 Subject: [PATCH] Add html-validate to local linters --- Makefile | 6 +++++- linter-configs/htmlvalidate.json | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bc012f6..32822c9 100644 --- a/Makefile +++ b/Makefile @@ -83,8 +83,12 @@ hint: hugo .hintrc-local hint --config .hintrc-local -f codeframe $(OUTPUT_DIR) rm .hintrc-local +.PHONY: html-validate +html-validate: + pnpm -s dlx html-validate --ext=html -c linter-configs/htmlvalidate.json $(OUTPUT_DIR) + .PHONY: lint-local -lint-local: validate-html validate-json lint-css +lint-local: html-validate validate-html validate-json lint-css # dev server, includes future and draft posts .PHONY: serve diff --git a/linter-configs/htmlvalidate.json b/linter-configs/htmlvalidate.json index ae0319a..1106ce8 100644 --- a/linter-configs/htmlvalidate.json +++ b/linter-configs/htmlvalidate.json @@ -29,6 +29,9 @@ ], "prefer-button": [ "off" + ], + "no-trailing-whitespace": [ + "off" ] } }