jshint-stylish-ex

0.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i jshint-stylish-ex

Weekly Downloads

181

Version

0.2.0

License

MIT

Last publish

Collaborators

  • karl.sjogren