Skip to content

Commit

Permalink
chore: add initial Nu Validator error filters
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Apr 23, 2018
1 parent 1728faa commit 3f72076
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .vnurc
Original file line number Diff line number Diff line change
@@ -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”:.*
# Ignoring for Slider examples because it is forcing rule with role=img
An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 3f72076

Please sign in to comment.