jshint-stylish

Stylish reporter for JSHint

Github星跟踪图

jshint-stylish Build Status

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-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

主要指标

概览
名称与所有者sindresorhus/jshint-stylish
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2013-10-13 06:32:17
推送于2023-11-06 02:09:46
最后一次提交
发布数17
最新版本名称v2.2.1 (发布于 2016-08-13 08:26:12)
第一版名称v0.1.0 (发布于 2013-10-13 06:33:42)
用户参与
星数557
关注者数16
派生数45
提交数52
已启用问题?
问题数27
打开的问题数0
拉请求数2
打开的拉请求数0
关闭的拉请求数11
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?