1.1.0 • Published 9 years ago
stylelint-formatter-yhw v1.1.0
stylelint-formatter-yhw
'You have won' custom formatter for stylelint.
Outputs a message of success if there are no warnings, along with a count of the number of sources checked. It's for Barnaby.
Installation
$ npm install stylelint-formatter-yhw
Usage
Using gulp
as a task-runner:
var config = require('stylelint-config-suitcss')
var formatter = require('stylelint-formatter-yhw')
var gulp = require('gulp')
var stylelint = require('stylelint')
gulp.task('stylelint', function () {
return stylelint.lint({
files: 'css/*.css',
formatter: formatter,
config: config
}).then(function(data) {
console.log(data.output)
}).catch(function(err) {
console.error(err.stack);
})
})