npm.io
0.2.0 • Published 13 years ago

jshint-stylish-ex

Licence
MIT
Version
0.2.0
Deps
3
Vulns
0
Weekly
0
Stars
4

jshint-stylish Build Status

Stylish reporter for JSHint

screenshot

Compared to the default reporter:

default reporter

Install

Install with npm: npm install --save-dev jshint-stylish-ex

Getting started

Use it with:

JSHint CLI
jshint --reporter node_modules/jshint-stylish-ex/stylish.js file.js
grunt-contrib-jshint
grunt.initConfig({
	jshint: {
		options: {
			reporter: require('jshint-stylish-ex')
		},
		target: ['file.js']
	}
});

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

Configuring colors

In this ex edition you can put an optional .stylishcolors-file in the root of your project to modify the output colors of the reporter.

{
    "meta": "gray",
    "reason": "blue",
    "verbose": "gray",
    "error": "red",
    "noproblem": "green"
}

The colors available are those from chalk, specificly black, red, green, yellow, blue, magenta, cyan, white and gray. There is no support for backgroundcolors or chaning underlines etc.

License

MIT Sindre Sorhus, ex-edition by Karl-Johan Sjögren

Keywords