JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 69445
  • Score
    100M100P100Q163768F
  • License MIT

Stylish reporter for JSHint

Package Exports

  • jshint-stylish

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jshint-stylish) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

jshint-stylish Build Status

Stylish reporter for JSHint


🔥 Want to strengthen your core JavaScript skills and master ES6?
I would personally recommend this awesome ES6 course by Wes Bos.


Compared to the default reporter:

Install

$ npm install --save-dev jshint-stylish

Usage

JSHint CLI

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

gulp-jshint

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

grunt-contrib-jshint

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
gulp.task('default', () =>
    gulp.src(['file.js'])
        .pipe(jshint('.jshintrc'))
        .pipe(jshint.reporter('jshint-stylish', {beep: true}))
);

License

MIT © Sindre Sorhus