Skip to content

fix: upgrade prettier to ^3.0.0 for ESLint plugin compatibility (Issue #919)#926

Closed
zhengshui wants to merge 1 commit intocallstack:mainfrom
zhengshui:fix/issue-919-prettier-version
Closed

fix: upgrade prettier to ^3.0.0 for ESLint plugin compatibility (Issue #919)#926
zhengshui wants to merge 1 commit intocallstack:mainfrom
zhengshui:fix/issue-919-prettier-version

Conversation

@zhengshui
Copy link

Summary

Fixes Issue #919: "Doesn't work with NPM"

Problem

When using create-react-native-library to create a new library, npm install fails with the following error:

npm error peer prettier@">=3.0.0" from eslint-plugin-prettier@5.5.4

This is because the template was using prettier@^2.8.8 but eslint-plugin-prettier@^5.5.4 requires prettier >= 3.0.0.

Solution

Upgrade prettier from ^2.8.8 to ^3.0.0 in the ESLint tool configuration to ensure compatibility with the latest eslint-plugin-prettier.

Testing

The change has been verified by reviewing the configureTools.ts file which now specifies prettier: '^3.0.0' alongside eslint-plugin-prettier: '^5.5.4'.

Issue callstack#919: Doesn't work with NPM

The template was using prettier@^2.8.8 but eslint-plugin-prettier@^5.5.4
requires prettier >= 3.0.0, causing npm install to fail with peer
dependency conflicts.

This change upgrades prettier to ^3.0.0 to ensure compatibility with
the latest eslint-plugin-prettier.
@zhengshui zhengshui closed this Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant