# jshint-stylish

> Stylish reporter for JSHint

Latest version **2.2.1** (published 2016-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install jshint-stylish
pnpm add jshint-stylish
yarn add jshint-stylish
bun add jshint-stylish
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.1 |
| Published | 2016-08-13 |
| First published | 2013-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 556 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | jshint, reporter, formatter, format, lint, validate, stylish, elegant, pretty |

## Links

- npm: https://www.npmjs.com/package/jshint-stylish
- Repository: https://github.com/sindresorhus/jshint-stylish
- Homepage: https://github.com/sindresorhus/jshint-stylish#readme
- Issues: https://github.com/sindresorhus/jshint-stylish/issues
- npm.io page: https://npm.io/package/jshint-stylish

## Dependencies (6)

- [plur](https://npm.io/package/plur.md) ^2.1.0
- [chalk](https://npm.io/package/chalk.md) ^1.0.0
- [beeper](https://npm.io/package/beeper.md) ^1.1.0
- [text-table](https://npm.io/package/text-table.md) ^0.2.0
- [log-symbols](https://npm.io/package/log-symbols.md) ^1.0.0
- [string-length](https://npm.io/package/string-length.md) ^1.0.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 2.2.1 (latest) — 2016-08-13
- 2.2.0 — 2016-05-01
- 2.1.0 — 2015-11-14
- 2.0.1 — 2015-06-21
- 2.0.0 — 2015-05-23
- 1.0.2 — 2015-05-03
- 1.0.1 — 2015-02-24
- 1.0.0 — 2014-09-19
- 0.4.0 — 2014-07-10
- 0.3.0 — 2014-07-08
- 0.2.0 — 2014-04-29
- 0.1.5 — 2014-01-03
- 0.1.4 — 2013-11-24
- 0.1.3 — 2013-10-25
- 0.1.2 — 2013-10-25
- … 2 more at https://npm.io/package/jshint-stylish/versions

## README

# jshint-stylish [![Build Status](https://travis-ci.org/sindresorhus/jshint-stylish.svg?branch=master)](https://travis-ci.org/sindresorhus/jshint-stylish)

> Stylish reporter for [JSHint](https://github.com/jshint/jshint)

---

<p align="center"><b>🔥 Want to strengthen your core JavaScript skills and master ES6?</b><br>I would personally recommend this awesome <a href="https://ES6.io/friend/AWESOME">ES6 course</a> by Wes Bos.</p>

---

![](screenshot.png)

Compared to the default reporter:

![](screenshot-default-reporter.png)


## Install

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


## Usage

### JSHint CLI

```
$ jshint --reporter=node_modules/jshint-stylish file.js
```

### [gulp-jshint](https://github.com/spalger/gulp-jshint)

```js
gulp.task('default', () =>
	gulp.src(['file.js'])
		.pipe(jshint('.jshintrc'))
		.pipe(jshint.reporter('jshint-stylish'))
);
```

### [grunt-contrib-jshint](https://github.com/gruntjs/grunt-contrib-jshint)

```js
grunt.initConfig({
	jshint: {
		options: {
			reporter: require('jshint-stylish')
		},
		target: ['file.js']
	}
});

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


## Options

#### beep

Type: `boolean`<br>
Default: `false`

The system bell will make a sound if there were any warnings or errors.

###### Gulp example

```js
gulp.task('default', () =>
	gulp.src(['file.js'])
		.pipe(jshint('.jshintrc'))
		.pipe(jshint.reporter('jshint-stylish', {beep: true}))
);
```


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

---
_Source: https://npm.io/package/jshint-stylish · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
