Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

A gulp-jshint reporter that include notifications

License

Notifications You must be signed in to change notification settings

obihann/jshint-stylish-notifier

Repository files navigation

jshint-stylish-notify

Ported from sindresorhus/jshint-stylish with the addition of node-notifier JSHint will now display notifications.

From node-notifier

Using Notification Center for Mac, notify-osd/libnotify-bin for Linux, Toasters for Windows 8/10, or taskbar Balloons for earlier Windows versions. If none of these requirements are met, Growl is used.

From sindresorhus/jshint-stylish

Stylish reporter for JSHint

Compared to the default reporter:

Install

$ npm install --save-dev jshint-stylish-notify

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 © Jeffrey Hann

About

A gulp-jshint reporter that include notifications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published