A Gulp plugin to format code using Prettier, forked from gulp-prettier with Netflix-specific requirements. Current stable version is 6.0.0 (pure ESM, Node 18+). Prettier is a peer dependency, allowing independent upgrades. Key differentiators: supports editorconfig, includes a `check` method for CI (errors on unformatted files), and offers options like `printWidth`, `parser`, `singleQuote`. Successor to v3.0.0 (Prettier v2) and v5.0.0 (Prettier v3). Alternative to gulp-prettier.
npm install gulp-nf-prettierVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic formatting task with gulp-nf-prettier, applying Prettier options and writing files back.
Upgrade Node.js to version 18 or later.
Use import syntax and ensure project is ESM (e.g., type: 'module' in package.json).
Review Prettier 3.0 migration guide. Options like trailingComma may need updating.
Ensure Node >=10 and review Prettier 2.0 breaking changes.
Consider using the upstream gulp-prettier or other alternatives if Netflix-specific features aren't needed.
Run npm install prettier --save-dev.
Set check: false or handle build errors appropriately.
Install from GitHub: npm install https://github.com/bhargavrpatel/gulp-prettier
Switch to import syntax or downgrade to v5.0.0.
Install prettier: npm install prettier --save-dev
Use default import: import prettier from 'gulp-nf-prettier'