Skip to content

Commit

Permalink
Bump dependencies & drop node 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Nov 16, 2019
1 parent a72ad73 commit 722b0ea
Show file tree
Hide file tree
Showing 7 changed files with 8,195 additions and 5,062 deletions.
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
sudo: false
language: node_js
node_js:
- '6'
- '8'
- '10'
- '12'

matrix:
fast_finish: true
Expand Down
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const htmlhintPlugin = function (options, customRules) {
const externalOptions = fs.readFileSync(options.htmlhintrc, 'utf-8');
options = JSON.parse(stripJsonComments(externalOptions));
} catch (error) {
throw new Error('gulp-htmlhint: Cannot parse .htmlhintrc');
throw new Error('gulp-htmlhint: Cannot parse .htmlhintrc ' + (error.message || error));
}
}

Expand Down Expand Up @@ -174,6 +174,7 @@ htmlhintPlugin.reporter = function (customReporter, options) {
if (customReporter === 'fail' || customReporter === 'failOn') {
return htmlhintPlugin.failOnError();
}

if (customReporter === 'failAfter') {
return htmlhintPlugin.failAfterError();
}
Expand Down Expand Up @@ -221,6 +222,7 @@ htmlhintPlugin.failOnError = function (opts) {
});
}
}

cb(error, file);
});
};
Expand All @@ -247,6 +249,7 @@ htmlhintPlugin.failAfterError = function (opts) {
globalErrorMessage += messages.join(os.EOL) + os.EOL;
}
}

cb(null, file);
}

Expand Down
Loading

0 comments on commit 722b0ea

Please sign in to comment.