Upgrading eslint-plugin-prettier 4 to 5
Breaking4.2.5 → 5.5.7Breaking2Platform1New3Changed10Fixed14Other7
BreakingUpgrade verdict
2 breaking changes and a platform requirement change.
In plain terms
- This major release requires newer versions of ESLint, Node.js and Prettier, and now ships TypeScript type definitions.
- The package now declares which files can be imported. Importing the plugin's internal files directly by path no longer works, but importing the recommended config by name now does.
- The plugin no longer runs on Node.js 12; use a newer Node.js version.
Must act 3 items need code or config changes
Node.js requirement changed in 5.0.0-alpha.0: >=12.0.0 → ^14.18.0 || >=16.0.0.
Adds synckit ^0.12.3.
Installs 5 packages in all (was 2).
Also installs @dual-bundle/import-meta-resolve, @pkgr/core.
What you must change
Breaking2
Bumps eslint, node and prettier versions and adds types support.
Adds an exports mapping to package.json so importing eslint-plugin-prettier/recommended works, removing deep imports of eslint-plugin-prettier.js and recommended.js.
eslint-plugin-prettier/recommendedeslint-plugin-prettier/eslint-plugin-prettier.jseslint-plugin-prettier/recommended.jsPlatform1
Drops Node v12 support.