Fix lint on travis
PR #2852 was not quite correct
Paul O’Shannessy committed
Jan 13, 2015 at 16:54 UTC
892f0a59fe63c46cb3d998ac7165296a864f65d8
1 file changed
+6
-1
Gruntfile.js
+6
-1
@@ -45,8 +45,13 @@ module.exports = function(grunt) {
45
cmd: 'node_modules/.bin/eslint',
46
args: ['src']
47
}, function(err, result, code) {
48
+ if (code === 0) {
49
+ grunt.log.ok('Lint passed (but may contain warnings)');
50
+ } else {
51
+ grunt.log.error('Lint failed');
52
+ }
53
if (result.stdout.length) {
49
- grunt.warn(result.stdout);
54
+ grunt.log.writeln(result.stdout);
55
}
56
57
done(code === 0);