We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have tried 3 different ways of declaring custom rules, neither of them worked. Referencing a .htmlhintrc file:
.htmlhintrc
gulp.task('htmllint', function() { return gulp.src(settings.app.base + "/index.html") .pipe(htmllint('.htmlhintrc', htmllintReporter)); });
Referencing a htmlhintrc.json file:
htmlhintrc.json
gulp.task('htmllint', function() { return gulp.src(settings.app.base + "/index.html") .pipe(htmllint('htmlhintrc.json', htmllintReporter)); });
And referencing the object inline:
gulp.task('htmllint', function() { return gulp.src(settings.app.base + "/index.html") .pipe(htmllint({ "tag-pair": true, "title-require": false }, htmllintReporter)); });
Other than that I always get the following error: (E015) line ending does not match format: lf and I have found no documentation for this at https://github.com/yaniswang/HTMLHint/wiki/Rules
(E015) line ending does not match format: lf
The text was updated successfully, but these errors were encountered:
Referencing the htmlhtintrc file like this works for me:
gulp.task('htmlhint', function () { return gulp.src([ '*.html', 'app/**/*.html', 'ext/**/*.html' ]) .pipe(htmlhint({ htmlhintrc: './.htmlhintrc' })) .pipe(htmlhint.reporter()) .pipe(htmlhint.failReporter({ suppress: true })); });
Sorry, something went wrong.
@gaboratorium I doubt this is still relevant in 2019, but your not using htmlHint.reporter() and you need to.
No branches or pull requests
I have tried 3 different ways of declaring custom rules, neither of them worked.
Referencing a
.htmlhintrc
file:Referencing a
htmlhintrc.json
file:And referencing the object inline:
Other than that I always get the following error:
(E015) line ending does not match format: lf
and I have found no documentation for this at https://github.com/yaniswang/HTMLHint/wiki/Rules
The text was updated successfully, but these errors were encountered: