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-eslintVerified import paths — ran on the pinned version, not inferred.
Basic gulp task using gulp-eslint to lint JavaScript files, output results, and fail on errors.
Use ESLint 6.x or upgrade to a newer gulp-eslint fork (e.g., @bigfishtv/gulp-eslint).
Switch to @bigfishtv/gulp-eslint which uses ESLint's new API, or use gulp-eslint-new.
Ensure .pipe(eslint.failAfterError()) is the final .pipe() call before returning the stream.
Pass format name and output stream as arguments to formatEach().
Downgrade to ESLint 6.x or use a compatible fork like @bigfishtv/gulp-eslint.
Install the required config package: npm install eslint-config-airbnb --save-dev.
Create a .eslintrc.json file or pass rules in options: eslint({ rules: { 'no-unused-vars': 2 } }).