praveenvijayan / grunt-html-validation

W3C html validaton grunt plugin. Validate all files in a directory automatically.
MIT License
75 stars 39 forks source link

syntax error causes failure because of - in html-validation #80

Open NYCJacob opened 7 years ago

NYCJacob commented 7 years ago

w3c-validation fork plugin does not work. grunt and my editor throw syntax errors because of the - in the plugin names. I was using the original html-validation plugin without problems. This is my config stanza. html-validation: { options: { reset: grunt.option('reset') || false, stoponerror: false, relaxerror: ["Bad value X-UA-Compatible for attribute http-equiv on element meta."] //ignores these errors }, files: { src: '*.html' } }

This is the error message: Loading "Gruntfile.js" tasks...ERROR

SyntaxError: Unexpected token -