Fix lint on travis

PR #2852 was not quite correct
This commit is contained in:
Paul O’Shannessy
2015-01-13 16:55:10 -08:00
parent 62ef56ac99
commit cff4eae11d
+6 -1
View File
@@ -45,8 +45,13 @@ module.exports = function(grunt) {
cmd: 'node_modules/.bin/eslint',
args: ['src']
}, function(err, result, code) {
if (code === 0) {
grunt.log.ok('Lint passed (but may contain warnings)');
} else {
grunt.log.error('Lint failed');
}
if (result.stdout.length) {
grunt.warn(result.stdout);
grunt.log.writeln(result.stdout);
}
done(code === 0);