Skip to content

Rules are not working #24

@gaborpinterweb

Description

@gaborpinterweb

I have tried 3 different ways of declaring custom rules, neither of them worked.
Referencing a .htmlhintrc file:

gulp.task('htmllint', function() {
        return gulp.src(settings.app.base + "/index.html")
            .pipe(htmllint('.htmlhintrc', htmllintReporter));
    });

Referencing a htmlhintrc.json file:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions