UNPKG

htmlhint-stylish

Version:
38 lines (24 loc) 918 B
# htmlhint-stylish [![Build Status](https://travis-ci.org/doshprompt/htmlhint-stylish.svg)](https://travis-ci.org/doshprompt/htmlhint-stylish) > Stylish reporter for [HTMLHint](https://htmlhint.com) Uses [jshint-stylish](https://github.com/sindresorhus/jshint-stylish) to do the actual reporting: ![](screenshot.png) Compared to the default reporter: ![](screenshot-default-reporter.png) ## Install ``` $ npm install --save-dev htmlhint-stylish ``` ## Usage ### [gulp-htmlhint](https://www.npmjs.com/package/gulp-htmlhint) ```js var gulp = require('gulp'); gulp.task('default', function () { gulp.src(['index.html']) .pipe(htmlhint('.htmlhintrc')) .pipe(htmlhint.reporter('htmlhint-stylish')) .pipe(htmlhint.failReporter({ supress: true })); // if you want to your task to fail on error(s) ``` ## License MIT © [Rahul Doshi](http://twitter.com/doshprompt)