From 2677fcfb1a425ebca45124a61377a0ed7de9d6c0 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Tue, 1 Aug 2017 03:23:08 -0400 Subject: [PATCH] chore: add initial Nu Validator error filters --- .vnurc | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .vnurc diff --git a/.vnurc b/.vnurc new file mode 100644 index 0000000000..c500282cf0 --- /dev/null +++ b/.vnurc @@ -0,0 +1,7 @@ +# Add regex filters for the Nu Validator error messages for proposed changes +# not yet added to the validator. +# +# Proposed, tracking in gh-429 +Bad value “” for attribute “aria-activedescendant” on element “ul”:.* +# Valid, tracking upstream fix in gh-432 +Bad value “none” for attribute “role” on element “li”. diff --git a/package.json b/package.json index 5f9eb7c34e..7aa2be1c70 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "fix": "eslint --fix bin examples", "lint": "eslint bin examples", - "vnu-jar": "java -jar node_modules/vnu-jar/build/dist/vnu.jar --errors-only --no-langdetect examples/**/*.html", + "vnu-jar": "java -jar node_modules/vnu-jar/build/dist/vnu.jar --errors-only --filterfile .vnurc --no-langdetect examples/**/*.html", "test": "npm run lint && npm run vnu-jar" }, "repository": {