Skip to content

Commit 722b0ea

Browse files
committed
Bump dependencies & drop node 8 support
1 parent a72ad73 commit 722b0ea

File tree

7 files changed

+8195
-5062
lines changed

7 files changed

+8195
-5062
lines changed

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- '6'
54
- '8'
65
- '10'
6+
- '12'
77

88
matrix:
99
fast_finish: true

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const htmlhintPlugin = function (options, customRules) {
6767
const externalOptions = fs.readFileSync(options.htmlhintrc, 'utf-8');
6868
options = JSON.parse(stripJsonComments(externalOptions));
6969
} catch (error) {
70-
throw new Error('gulp-htmlhint: Cannot parse .htmlhintrc');
70+
throw new Error('gulp-htmlhint: Cannot parse .htmlhintrc ' + (error.message || error));
7171
}
7272
}
7373

@@ -174,6 +174,7 @@ htmlhintPlugin.reporter = function (customReporter, options) {
174174
if (customReporter === 'fail' || customReporter === 'failOn') {
175175
return htmlhintPlugin.failOnError();
176176
}
177+
177178
if (customReporter === 'failAfter') {
178179
return htmlhintPlugin.failAfterError();
179180
}
@@ -221,6 +222,7 @@ htmlhintPlugin.failOnError = function (opts) {
221222
});
222223
}
223224
}
225+
224226
cb(error, file);
225227
});
226228
};
@@ -247,6 +249,7 @@ htmlhintPlugin.failAfterError = function (opts) {
247249
globalErrorMessage += messages.join(os.EOL) + os.EOL;
248250
}
249251
}
252+
250253
cb(null, file);
251254
}
252255

0 commit comments

Comments
 (0)