diff --git a/readme.md b/readme.md index d7bc0ba..98b8eca 100755 --- a/readme.md +++ b/readme.md @@ -20,6 +20,7 @@ grunt.initConfig({ sasslint: { options: { configFile: 'config/.sass-lint.yml', + logColor: 'yellow' }, target: ['location/\*.scss', 'other_location/\*.scss'] } @@ -63,3 +64,10 @@ Type: `string` Default: `` Will save the generated output to disk instead of command line. + +### logColor + +Type: `string` +Default: `` + +Will change your console output to a colorful hint. See http://slides.com/joshschumacher/grunt-logging#/5 for all the possible colors diff --git a/tasks/sass-lint.js b/tasks/sass-lint.js index 1bd20fe..439cb7d 100755 --- a/tasks/sass-lint.js +++ b/tasks/sass-lint.js @@ -24,7 +24,7 @@ module.exports = function (grunt) { opts['output-file'] = opts['outputFile']; lint.outputResults(results, { options: opts }); } else { - grunt.log.writeln(resultFormat); + grunt.log.writeln(!('logColor' in opts) ? resultFormat : resultFormat[opts.logColor]); } if (errorCount.count > 0) grunt.fail.warn(''); }