Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump formatters to the latest major versions #38545

Closed
wants to merge 26 commits into from
Closed

Bump formatters to the latest major versions #38545

wants to merge 26 commits into from

Conversation

UNIDY2002
Copy link
Contributor

Summary:

Prettier v3 has been released recently and has caused compatibility issues with eslint-plugin-prettier, which released v5 shortly afterwards to resolve the conflict. However, @react-native/eslint-config is still consuming eslint-plugin-prettier@^4.2.1, so any project that has upgraded Prettier to v3 will see exceptions while linting.

In light of the fact that several formatters (Prettier, eslint-plugin-prettier, typescript-eslint) have recently made major-version releases, I recommend upgrading them to mitigate potential issues and leverage the latest updates of the formatters.

Changelog:

[GENERAL] [CHANGED] - Bump Prettier in template from 2.8.8 to 3.0.0 and upgrade dependencies of @react-native/eslint-config

Test Plan:

Everything builds and runs as expected

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jul 21, 2023
@analysis-bot
Copy link

analysis-bot commented Jul 21, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 16,513,656 -3
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 19,884,244 +0
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: eb661df
Branch: main

@github-actions github-actions bot added the Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. label Jul 21, 2023
@github-actions
Copy link

github-actions bot commented Jul 26, 2023

Warnings
⚠️ 🔒 package.json - Changes were made to package.json. This will require a manual import by a Facebook employee.

Generated by 🚫 dangerJS against ceab07c

@cortinico cortinico removed the Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. label Aug 1, 2023
# Conflicts:
#	.flowconfig
#	.flowconfig.android
#	package.json
#	packages/eslint-config-react-native/package.json
#	packages/react-native/template/package.json
#	yarn.lock
# Conflicts:
#	package.json
#	packages/eslint-config-react-native/package.json
#	yarn.lock
# Conflicts:
#	packages/react-native-codegen/package.json
@cortinico
Copy link
Contributor

Just a small heads up as this PR has been un-reviewed for a while. Sadly we can't just bump prettier easily as we'll have to follow the versioning imposed by the internal monorepo. So once we bump prettier internally, React Native will also be bumped

@UNIDY2002 UNIDY2002 closed this by deleting the head repository Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants