Registry / devops / gulp-eslint

gulp-eslint

JSON →
library6.0.0jsnpmunverified

A gulp plugin for ESLint, version 6.0.0, compatible with ESLint 6. It provides a streamlined way to integrate ESLint into gulp task pipelines, offering functions like eslint(), eslint.format(), eslint.formatEach(), eslint.failAfterError(), and eslint.failOnError(). Key differentiators include seamless integration with gulp streams, support for ESLint's fix and quiet options, and the ability to fail the build on lint errors. Released under MIT license, with no new versions since 2019, indicating maintenance mode.

npm install gulp-eslint
INSTALL
IMPORT
SIG · GULP-ESLINT
G
gulp-eslint
devopsjavascriptv6.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import eslint from 'gulp-eslint'
const eslint = require('gulp-eslint').default
Package does not export named exports; default import is the plugin function.
eslint
const eslint = require('gulp-eslint')
const { eslint } = require('gulp-eslint')
CommonJS require() returns the plugin function directly, not an object with a named property.
type imports (TypeScript)
import eslint from 'gulp-eslint'
import * as eslint from 'gulp-eslint'
gulp-eslint does not ship TypeScript definitions; use @types/gulp-eslint for type support.

Basic gulp task using gulp-eslint to lint JavaScript files, output results, and fail on errors.

const gulp = require('gulp'); const eslint = require('gulp-eslint'); gulp.task('lint', () => { return gulp.src(['scripts/**/*.js']) .pipe(eslint({ configFile: '.eslintrc.json' })) .pipe(eslint.format()) .pipe(eslint.failAfterError()); });
Debug
Known issues
breakinggulp-eslint v6 requires ESLint 6.x. ESLint 7+ not supported.
fix
Use ESLint 6.x or upgrade to a newer gulp-eslint fork (e.g., @bigfishtv/gulp-eslint).
affects: >=6.0.0
deprecatedCLIEngine is deprecated in ESLint 7+. gulp-eslint v6 uses CLIEngine internally.
fix
Switch to @bigfishtv/gulp-eslint which uses ESLint's new API, or use gulp-eslint-new.
affects: >=6.0.0
gotchaeslint.failAfterError() must be the last plugin in the stream to work correctly.
fix
Ensure .pipe(eslint.failAfterError()) is the final .pipe() call before returning the stream.
affects: >=1.0.0
gotchaWhen using eslint.format(), results are printed to stdout. Use eslint.formatEach('compact', process.stderr) to output to stderr.
fix
Pass format name and output stream as arguments to formatEach().
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: CLIEngine is not a constructor
gulp-eslint v6 is incompatible with ESLint 7+ because CLIEngine was removed.
fix
Downgrade to ESLint 6.x or use a compatible fork like @bigfishtv/gulp-eslint.
Error: Failed to load config "airbnb" to extend from.
Missing ESLint config package (e.g., eslint-config-airbnb) not installed.
fix
Install the required config package: npm install eslint-config-airbnb --save-dev.
Warning: No rules configuration provided. Using default rules.
No .eslintrc file or inline config passed to eslint() options.
fix
Create a .eslintrc.json file or pass rules in options: eslint({ rules: { 'no-unused-vars': 2 } }).
Upgrade
Version history
6.0.0latest on npm
Audit
Dependencies
eslintrequiredPeer dependency; gulp-eslint wraps ESLint's CLIEngine and requires version 6.x.
Agent activity
10 hits · last 30 days
node
10
Resources
gulp-eslint — npm install gulp-eslint · libregistry