Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/jshint-stylish
Stylish reporter for JSHint
https://github.com/sindresorhus/jshint-stylish
Last synced: about 1 month ago
JSON representation
Stylish reporter for JSHint
- Host: GitHub
- URL: https://github.com/sindresorhus/jshint-stylish
- Owner: sindresorhus
- License: mit
- Created: 2013-10-12T22:32:17.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2023-11-05T18:09:46.000Z (about 1 year ago)
- Last Synced: 2024-04-14T11:09:14.017Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 127 KB
- Stars: 560
- Watchers: 19
- Forks: 49
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
- Security: .github/security.md
Awesome Lists containing this project
README
# jshint-stylish
> Stylish reporter for [JSHint](https://github.com/jshint/jshint)
![](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`
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)