Gathering detailed insights and metrics for gulp-eslint-threshold
Gathering detailed insights and metrics for gulp-eslint-threshold
npm install gulp-eslint-threshold
Typescript
Module System
Min. Node Version
Node Version
NPM Version
70.5
Supply Chain
75.7
Quality
75
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
382,160
Last Day
92
Last Week
665
Last Month
3,043
Last Year
53,231
MIT License
6 Stars
6 Commits
2 Forks
3 Watchers
1 Branches
1 Contributors
Updated on Sep 10, 2018
Minified
Minified + Gzipped
Latest Version
0.1.1
Package Id
gulp-eslint-threshold@0.1.1
Size
3.92 kB
NPM Version
2.11.3
Node Version
0.12.7
Published on
Aug 03, 2015
Cumulative downloads
Total Downloads
Last Day
-21.4%
92
Compared to previous day
Last Week
7.4%
665
Compared to previous week
Last Month
4.1%
3,043
Compared to previous month
Last Year
-3.9%
53,231
Compared to previous year
5
A simple gulp stream plugin for counting warnings from gulp-eslint and call a callback function when the number rises above a threshold you set.
1npm install gulp-eslint-threshold
1'use strict'; 2 3var gulp = require('gulp'), 4 eslint = require('gulp-eslint'), 5 eslintThreshold = require('gulp-eslint-threshold'); 6 7gulp.task('eslint', function() { 8 var thresholdWarnings = 3; 9 10 return gulp.src(['**/*.js', '!node_modules/**']) 11 .pipe(eslint()) 12 .pipe(eslint.format()) 13 .pipe(eslintThreshold.afterWarnings(thresholdWarnings, function (numberOfWarnings) { 14 throw new Error('ESLint warnings (' + numberOfWarnings + ') equal to or greater than the threshold (' + thresholdWarnings + ')'); 15 })); 16}); 17 18gulp.task('default', ['eslint']);
afterWarnings(minWarnings, callbackFunction)
minWarnings
, a number for the threshold.callbackFunction(eslintWarnings)
, a callback function for when the threshold is met. The argument eslintWarnings
is the number of warnings found by ESLint.afterErrors(minErrors, callbackFunction)
minErrors
, a number for the threshold.callbackFunction(eslintErrors)
, a callback function for when the threshold is met. The argument eslintErrors
is the number of errors found by ESLint.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no SAST tool detected
Details
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
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