Skip to content

Latest commit

 

History

History
76 lines (50 loc) · 1.16 KB

readme.md

File metadata and controls

76 lines (50 loc) · 1.16 KB

jshint-stylish

Stylish reporter for JSHint

Compared to the default reporter:

Install

$ npm install --save-dev jshint-stylish

Usage

JSHint CLI

$ jshint --reporter=node_modules/jshint-stylish file.js
gulp.task('default', () =>
	gulp.src(['file.js'])
		.pipe(jshint('.jshintrc'))
		.pipe(jshint.reporter('jshint-stylish'))
);
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