Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ grunt.initConfig({
sasslint: {
options: {
configFile: 'config/.sass-lint.yml',
logColor: 'yellow'
},
target: ['location/\*.scss', 'other_location/\*.scss']
}
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion tasks/sass-lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
}
Expand Down