You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since a lot of people are using grunt to validate source code —and not built files, such as minified javascript— it would be nice if grunt-htmlhint would also support linting url's, instead of only files.
Say you're using a local node.js server with a template engine like Swig, and you'd want to check your html before the build, so you can fail the build if necessary. Like refusing to optimize require.js with r.js if there are JSHint errors. frntndr is an example of such a project. Who has the full html for a single page inside one file nowadays?
For this to work, I'd be nice if grunt-htmlhint could validate url's as well. Since running htmlhint over swig files will naturally fail, there needs to be a way of validating combined html from several template files. Like the grunt-htmllint-http plugin does. But ideally you wouldn't want another grunt plugin for that if you ask me.
@yaniswang
Wish if there will be a option for ignore some templates content and let htmlhint pass.
Because it might be too heavy to run webdriver only for some template syntax and variables.
Since a lot of people are using grunt to validate source code —and not built files, such as minified javascript— it would be nice if grunt-htmlhint would also support linting url's, instead of only files.
Say you're using a local node.js server with a template engine like Swig, and you'd want to check your html before the build, so you can fail the build if necessary. Like refusing to optimize require.js with r.js if there are JSHint errors. frntndr is an example of such a project. Who has the full html for a single page inside one file nowadays?
For this to work, I'd be nice if grunt-htmlhint could validate url's as well. Since running htmlhint over swig files will naturally fail, there needs to be a way of validating combined html from several template files. Like the grunt-htmllint-http plugin does. But ideally you wouldn't want another grunt plugin for that if you ask me.
I could see an example config like this:
But this is of course only a proposal, maybe a different way of specifying url's makes more sense?
Edit: I could help with the development of this feature, if you agree this would be a nice addition.
The text was updated successfully, but these errors were encountered: