Installations
npm install gulp-byo-jslint
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
5.5.0
NPM Version
3.3.12
Score
64
Supply Chain
88
Quality
69.7
Maintenance
50
Vulnerability
98.1
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
benquarmby
Download Statistics
Total Downloads
1,566
Last Day
1
Last Week
1
Last Month
19
Last Year
168
GitHub Statistics
Apache-2.0 License
16 Stars
4 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Apr 14, 2019
Bundle Size
89.14 kB
Minified
26.16 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.1.1
Package Id
gulp-byo-jslint@1.1.1
Size
6.10 kB
NPM Version
3.3.12
Node Version
5.5.0
Total Downloads
Cumulative downloads
Total Downloads
1,566
Last Day
0%
1
Compared to previous day
Last Week
-83.3%
1
Compared to previous week
Last Month
72.7%
19
Compared to previous month
Last Year
42.4%
168
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
3
gulp-byo-jslint
A bring-your-own JSLint plugin for Gulp.
Isn't there already a JSLint plugin for Gulp?
Yes there is, but it is not awesome. It breaks on the first violation instead of enumerating all warnings, hasn't been updated in a very long time and doesn't support the latest version of JSLint.
What do you mean "BYO"?
Bring-your-own copy of jslint.js
, quite literaly. This plugin wont work
without it.
The use of git submodules is highly
recommended for this. No need to to wait for updates to gulp-byo-jslint
for
new versions of JSLint. Just git pull
in the submodule directory. What better
way to stay on the bleeding edge?
md submodules
cd submodules
git submodule add https://github.com/douglascrockford/JSLint.git
Does it support "old" JSLint?
No editions prior to 2015-05-01 will work with this plugin. The JSLint interface changed significantly at that time (all for the better), so there is no going back.
Any current edition of JSLint should work fine.
Installation
npm install gulp-byo-jslint --save-dev
Usage
1'use strict'; 2 3var gulp = require('gulp'); 4var jslint = require('gulp-byo-jslint'); 5var paths = [ 6 './**/*.js', // Include all JavaScript files 7 './**/*.json', // Include all JSON files 8 '!./node_modules/**', // Exclude NPM 9 '!./bower_components/**', // Exclude Bower 10 '!./submodules/**' // Exclude Git submodules 11]; 12 13function runJSLint(noFail) { 14 return gulp.src(paths) 15 .pipe(jslint({ 16 // The file path to jslint.js. 17 jslint: './submodules/JSLint/jslint.js', 18 19 // The options to pass to JSLint. 20 options: { 21 browser: true 22 }, 23 24 // The list of known global variables to pass to JSLint. 25 globals: ['define', 'require'], 26 27 // True to log all warnings without failing. 28 noFail: noFail 29 })); 30} 31 32gulp.task('lint', function () { 33 return runJSLint(); 34}); 35 36gulp.task('lint-watch', function () { 37 return runJSLint(true); 38}); 39 40gulp.task('watch', function () { 41 gulp.watch(paths, ['lint-watch']); 42});
For more information about the switches available on the options
property,
please see JSLint help.

No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-02-10
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