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

chore: Upgrade Prettier #13017

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

cshfang
Copy link
Contributor

@cshfang cshfang commented Feb 15, 2024

Description of changes

Prettier 3.2 introduced a change which now aligns the whitespacing correctly for conditionals. This, in turn, was causing files containing this difference that haven't been formatted to flag as errors given our transition from TSLint to ESLint. At this time, not every package has yet been migrated and so, to avoid having this issue crop up as the migrations continue to take place, upgrading Prettier and running the library through the formatter to better set the stage for the ongoing migration.

This PR upgrades Prettier to the latest version (3.2.5) which includes the above changes and formats the repo via

$ yarn prettier --write .

Description of how you validated changes

  • yarn test
  • yarn lint

Checklist

  • PR description included
  • yarn test passes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@cshfang cshfang requested review from a team as code owners February 15, 2024 20:02
@cshfang cshfang merged commit 1fdbb12 into aws-amplify:main Feb 15, 2024
31 checks passed
@cshfang cshfang deleted the chore/migrate-analytics-to-eslint branch February 15, 2024 20:36
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.

None yet

4 participants