stylelint-formatter-yhw

1.1.0 • Public • Published

stylelint-formatter-yhw

NPM version Travis Build Status

'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);
  })
})

Changelog

License

Package Sidebar

Install

npm i stylelint-formatter-yhw

Weekly Downloads

3

Version

1.1.0

License

MIT

Last publish

Collaborators

  • jeddy3