{"id":20083,"library":"gulp-eslint","title":"gulp-eslint","description":"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.","status":"maintenance","version":"6.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/adametry/gulp-eslint","tags":["javascript","gulpplugin","eslint","gulp","errors","warnings","check","source","code"],"install":[{"cmd":"npm install gulp-eslint","lang":"bash","label":"npm"},{"cmd":"yarn add gulp-eslint","lang":"bash","label":"yarn"},{"cmd":"pnpm add gulp-eslint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; gulp-eslint wraps ESLint's CLIEngine and requires version 6.x.","package":"eslint","optional":false}],"imports":[{"note":"Package does not export named exports; default import is the plugin function.","wrong":"const eslint = require('gulp-eslint').default","symbol":"default","correct":"import eslint from 'gulp-eslint'"},{"note":"CommonJS require() returns the plugin function directly, not an object with a named property.","wrong":"const { eslint } = require('gulp-eslint')","symbol":"eslint","correct":"const eslint = require('gulp-eslint')"},{"note":"gulp-eslint does not ship TypeScript definitions; use @types/gulp-eslint for type support.","wrong":"import * as eslint from 'gulp-eslint'","symbol":"type imports (TypeScript)","correct":"import eslint from 'gulp-eslint'"}],"quickstart":{"code":"const gulp = require('gulp');\nconst eslint = require('gulp-eslint');\n\ngulp.task('lint', () => {\n  return gulp.src(['scripts/**/*.js'])\n    .pipe(eslint({ configFile: '.eslintrc.json' }))\n    .pipe(eslint.format())\n    .pipe(eslint.failAfterError());\n});","lang":"javascript","description":"Basic gulp task using gulp-eslint to lint JavaScript files, output results, and fail on errors."},"warnings":[{"fix":"Use ESLint 6.x or upgrade to a newer gulp-eslint fork (e.g., @bigfishtv/gulp-eslint).","message":"gulp-eslint v6 requires ESLint 6.x. ESLint 7+ not supported.","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"Switch to @bigfishtv/gulp-eslint which uses ESLint's new API, or use gulp-eslint-new.","message":"CLIEngine is deprecated in ESLint 7+. gulp-eslint v6 uses CLIEngine internally.","severity":"deprecated","affected_versions":">=6.0.0"},{"fix":"Ensure .pipe(eslint.failAfterError()) is the final .pipe() call before returning the stream.","message":"eslint.failAfterError() must be the last plugin in the stream to work correctly.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Pass format name and output stream as arguments to formatEach().","message":"When using eslint.format(), results are printed to stdout. Use eslint.formatEach('compact', process.stderr) to output to stderr.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Downgrade to ESLint 6.x or use a compatible fork like @bigfishtv/gulp-eslint.","cause":"gulp-eslint v6 is incompatible with ESLint 7+ because CLIEngine was removed.","error":"TypeError: CLIEngine is not a constructor"},{"fix":"Install the required config package: npm install eslint-config-airbnb --save-dev.","cause":"Missing ESLint config package (e.g., eslint-config-airbnb) not installed.","error":"Error: Failed to load config \"airbnb\" to extend from."},{"fix":"Create a .eslintrc.json file or pass rules in options: eslint({ rules: { 'no-unused-vars': 2 } }).","cause":"No .eslintrc file or inline config passed to eslint() options.","error":"Warning: No rules configuration provided. Using default rules."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}