Skip to content

Commit b4e6f2b

Browse files
committed
Fix linting errors
1 parent 359a651 commit b4e6f2b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/run-compilation.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ module.exports = function runCompilation(options, compiler, done) {
1616

1717
linter(options)
1818
.then(function linterSuccess(lint) {
19-
warnings = lint.results.filter(function (f) { return f.warnings && f.warnings.length; });
20-
errors = lint.results.filter(function (f) { return f.errored; });
19+
warnings = lint.results.filter(function (f) {
20+
return f.warnings && f.warnings.length;
21+
});
22+
23+
errors = lint.results.filter(function (f) {
24+
return f.errored;
25+
});
2126

2227
if (options.failOnError && errors.length) {
2328
done(new Error('Failed because of a stylelint error.\n'));

0 commit comments

Comments
 (0)