jshint-stylish

2.2.1last stable release 9 years ago
Complexity Score
Low
Open Issues
0
Dependent Projects
6,763
Weekly Downloadsglobal
81,264

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

jshint-stylish

Stylish reporter for JSHint

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

Dependencies

Loading dependencies...

CVE IssuesActive
0
Scorecards Score
4.10
Test Coverage
No Data
Follows Semver
Yes
Github Stars
560
Dependenciestotal
9
DependenciesOutdated
5
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute jshint-stylish in your own private NPM registry

npm config set registry  https://npm.cloudsmith.com/owner/repo
Processing...
Done
npm install jshint-stylish
Processing...
Done

17 Releases

NPM on Cloudsmith

Getting started with NPM on Cloudsmith is fast and easy.