diff --git a/scripts/tasks/eslint.js b/scripts/tasks/eslint.js index 027b97cf622ca..5c4841f4d6078 100644 --- a/scripts/tasks/eslint.js +++ b/scripts/tasks/eslint.js @@ -14,14 +14,19 @@ var spawn = require('child_process').spawn; var extension = process.platform === 'win32' ? '.cmd' : ''; -spawn(path.join('node_modules', '.bin', 'eslint' + extension), ['.'], { - // Allow colors to pass through - stdio: 'inherit', -}).on('close', function(code) { +spawn( + path.join('node_modules', '.bin', 'eslint' + extension), + ['.', '--max-warnings=0'], + { + // Allow colors to pass through + stdio: 'inherit', + } +).on('close', function(code) { if (code !== 0) { console.error('Lint failed'); + } else { + console.log('Lint passed'); } - console.log('Lint passed'); process.exit(code); });