1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00
seirdy.one/linter-configs/vnu_filter.jq
Rohan Kumar 86143428f3
Better backlinks, streamline css
- Streamline CSS to reduce duplication
- Better backlink accessible names for endnotes with multiple backlinks

This required updating a false positive filter in my vnu jq filter.
2022-05-12 20:51:11 -07:00

24 lines
749 B
Text

# Filter false positives from the .messages entry of Nu Validator output
.messages |= map(
. | select(
.type == "error" and
(
( # See https://github.com/w3c/css-validator/issues/361
.message == "CSS: Parse Error."
and .extract == "){outline:none}}@media(prefers"
and .hiliteLength == 1
)
or
( # See https://github.com/validator/validator/issues/1166
.message == "Attribute “media” not allowed on element “meta” at this point."
and .firstColumn == 1
and (.extract | test(" name=\"theme-color\""))
)
or
( # See https://w3c.github.io/aria/#comment
.message == "Bad value “comment” for attribute “role” on element “p”."
and (.extract | test("u-comment"))
)
) | not
)
)