stylelint-formatter-yhw

'You have won' custom formatter for stylelint

Usage no npm install needed!

<script type="module">
  import stylelintFormatterYhw from 'https://cdn.skypack.dev/stylelint-formatter-yhw';
</script>

README

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