jshint-stylish-file

Stylish reporter for JSHint, with file output

Usage no npm install needed!

<script type="module">
  import jshintStylishFile from 'https://cdn.skypack.dev/jshint-stylish-file';
</script>

README

jshint-stylish-file Build Status

Stylish reporter for JSHint

A shameless rip of the original JSHint-Stylish. I had need to send output to both Console and a file while using Gulp. The file output is a very barebones version on the consolout put. No colours or icons.

Install

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

Options

beep

Type: boolean
Default: false

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

output

Type: string
Default: undefined

The file to write to.

Example

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

License

MIT © Sindre Sorhus