gulp-eslint-threshold
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.
Installation
npm install gulp-eslint-threshold
Usage
'use strict'; var gulp = eslint = eslintThreshold = ; gulp; gulp;
Configuration
afterWarnings(minWarnings, callbackFunction)
minWarnings
, a number for the threshold.callbackFunction(eslintWarnings)
, a callback function for when the threshold is met. The argumenteslintWarnings
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 argumenteslintErrors
is the number of errors found by ESLint.