Stylish reporter for JSHint
JavaScript
Latest commit 586e782 Aug 13, 2016 @sindresorhus 2.2.1
Permalink
Failed to load latest commit information.
.editorconfig meta tweaks May 1, 2016
.gitattributes init Oct 12, 2013
.gitignore init Oct 12, 2013
.travis.yml meta tweaks May 1, 2016
fixture.js tweaks Sep 19, 2014
index.js Added option to play system "beep" when errors are reported May 1, 2016
license tweaks Aug 14, 2014
package.json 2.2.1 Aug 13, 2016
readme.md trying out something new Aug 13, 2016
screenshot-default-reporter.png fix screenshot Jun 4, 2015
screenshot.png tweaks Sep 19, 2014
test.js meta tweaks May 1, 2016

readme.md

jshint-stylish Build Status

Stylish reporter for JSHint


🔥 Want to strengthen your core JavaScript skills and master ES6?
I would personally recommend this awesome ES6 course by Wes Bos.


Compared to the default reporter:

Install

$ npm install --save-dev jshint-stylish

Usage

JSHint CLI

$ jshint --reporter=node_modules/jshint-stylish file.js

gulp-jshint

gulp.task('default', () =>
	gulp.src(['file.js'])
		.pipe(jshint('.jshintrc'))
		.pipe(jshint.reporter('jshint-stylish'))
);

grunt-contrib-jshint

grunt.initConfig({
	jshint: {
		options: {
			reporter: require('jshint-stylish')
		},
		target: ['file.js']
	}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['jshint']);

Options

beep

Type: boolean
Default: false

The system bell will make a sound if there were any warnings or errors.

Gulp example
gulp.task('default', () =>
	gulp.src(['file.js'])
		.pipe(jshint('.jshintrc'))
		.pipe(jshint.reporter('jshint-stylish', {beep: true}))
);

License

MIT © Sindre Sorhus