mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-24 01:42:10 +00:00
Add html-validate to local linters
This commit is contained in:
parent
53ad66f469
commit
980a6b4ec4
2 changed files with 8 additions and 1 deletions
6
Makefile
6
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
|
||||
|
|
|
@ -29,6 +29,9 @@
|
|||
],
|
||||
"prefer-button": [
|
||||
"off"
|
||||
],
|
||||
"no-trailing-whitespace": [
|
||||
"off"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue