gulp-prettier-eslint

raw JSON →
1.1.0 verified Sat Apr 25 auth: no javascript deprecated

A Gulp plugin (v1.1.0, last updated 2018) that pipes vinyl streams through prettier-eslint, combining Prettier formatting with ESLint rules. It runs prettier on JavaScript/JSX files and then applies ESLint autofix to ensure formatted output respects project lint config. Its key differentiator from plain gulp-prettier is the integration of eslint --fix, eliminating a separate formatting+linting pipeline step. Low maintenance, no recent updates, expect compatibility issues with modern Gulp 4+ streams or newer prettier/eslint versions.

error Error: Cannot find module 'gulp-prettier-eslint'
cause Package not installed or misspelled.
fix
npm install gulp-prettier-eslint --save-dev
error TypeError: gulp.src(...).pipe is not a function
cause Using Gulp 4 without returning stream.
fix
Return the stream in task: return gulp.src(...).pipe(...)
deprecated Package is no longer maintained; last release 2018.
fix Migrate to modern alternative: gulp-prettier with separate eslint task or use npx prettier-eslint directly.
breaking Not compatible with Gulp 4 series API (gulp.series/gulp.parallel). Requires Gulp 3.
fix Use Gulp 3.x or adapt code for Gulp 4 by wrapping in series.
gotcha Plugin does not forward options to prettier-eslint; all default options used.
fix Use alternatives or patch source if custom formatting needed.
npm install gulp-prettier-eslint
yarn add gulp-prettier-eslint
pnpm add gulp-prettier-eslint

Pipes JavaScript source through prettier-eslint using Gulp task.

const gulp = require('gulp');
const prettierEslint = require('gulp-prettier-eslint');

gulp.task('format', () => {
  return gulp.src('src/**/*.js')
    .pipe(prettierEslint())
    .pipe(gulp.dest('dist'));
});