Gathering detailed insights and metrics for gulp-jslint
Gathering detailed insights and metrics for gulp-jslint
Gathering detailed insights and metrics for gulp-jslint
Gathering detailed insights and metrics for gulp-jslint
npm install gulp-jslint
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
17 Stars
151 Commits
6 Forks
1 Watchers
1 Branches
5 Contributors
Updated on May 26, 2025
Latest Version
1.0.10
Package Id
gulp-jslint@1.0.10
Size
28.09 kB
NPM Version
3.10.9
Node Version
7.2.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
It's JSLint for Gulp.js.
Supports node >= 0.10.x
.
Simply install with npm by running npm install gulp-jslint
.
1var gulp = require('gulp'); 2var jslint = require('gulp-jslint'); 3 4gulp.task('default', function () { 5 return gulp.src(['source.js']) 6 .pipe(jslint({ /* this object represents the JSLint directives being passed down */ })) 7 .pipe(jslint.reporter( 'my-reporter' )); 8});
If you would like to specify a custom jslint edition to use, set the property 'edition' in your directives object. These versions should follow what the package node-jslint expects or this property can be set to a pre-loaded jslint function.
All directives being passed to the jslint()
function are standard JSLint directives (for a list of directives,
see the official JSLint docs).
However, to supply a list of global variables for your code, use the directive 'predef' or 'global' like so ('global' is an alias of 'predef' but 'predef' will be prefered since it is the official JSLint standard):
1gulp.task('default', function () { 2 return gulp.src(['source.js']) 3 .pipe(jslint({ 4 predef: [ 'a_global' ], 5 global: [ 'a_global' ] 6 })); 7});
Please see gulpfile.js
for a more extensive sample gulpfile.
By default, two reporters are provided by gulp-jslint. The first is the default reporter (appropriately named 'default') and the second report is the popular 'jshint-stylish' (named 'stylish').
To use either of these reporters, provide the name of the reporter followed by whatever arguments they expect to the function
jslint.reporter()
.
For example:
1gulp.task('default', function () { 2 return gulp.src(['source.js']) 3 .pipe(jslint()) 4 .pipe(jslint.reporter('default', errorsOnly)) 5 .pipe(jslint.reporter('stylish', options)); 6});
It's probably a good idea to use something like path.basename()
on the file
property to avoid lots of garbage in the
command-line (i.e. path.basename('/path/to/index.js') === 'index.js').
Custom reporters should be either be synchronous or streams. Either way, the reporter will receive a results
object and can
output its report onto the console/logfile the way it wishes.
The results object will contain the following properties:
Copyright (C) 2014-2016 Karim Alibhai. Code is licensed under the MIT license.
Please use the official issues section in GitHub to post issues or feature requests. Stars and helpful comments are much appreciated! :)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More