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: unify prettier to 3.4.2 #212

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

mareklibra
Copy link
Contributor

@mareklibra mareklibra commented Dec 19, 2024

Unifies prettier to a single 3.4.2 version through-out the whole repo.

Different prettier versions give different results on the same sources which is causing issues/confusion when switching between local dev and CI envs.

The first commit is result of a manual change, the later one is the result of calling the prettier from the root-level and then from every workspace.

@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Dec 19, 2024

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @red-hat-developer-hub/backstage-plugin-bulk-import-backend
  • @red-hat-developer-hub/backstage-plugin-bulk-import
  • @red-hat-developer-hub/backstage-plugin-dynamic-home-page
  • @red-hat-developer-hub/backstage-plugin-theme

See CONTRIBUTING.md for more information about how to add changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
app workspaces/bulk-import/packages/app none v0.0.3
@red-hat-developer-hub/backstage-plugin-bulk-import-backend workspaces/bulk-import/plugins/bulk-import-backend none v5.2.0
@red-hat-developer-hub/backstage-plugin-bulk-import workspaces/bulk-import/plugins/bulk-import none v1.10.6
@red-hat-developer-hub/backstage-plugin-dynamic-home-page workspaces/homepage/plugins/dynamic-home-page none v1.0.2
@red-hat-developer-hub/backstage-plugin-marketplace-backend workspaces/marketplace/plugins/marketplace-backend none v0.0.0
@red-hat-developer-hub/backstage-plugin-marketplace-common workspaces/marketplace/plugins/marketplace-common none v0.0.0
@red-hat-developer-hub/backstage-plugin-marketplace workspaces/marketplace/plugins/marketplace none v0.0.0
@red-hat-developer-hub/backstage-plugin-bc-test workspaces/theme/plugins/bc-test none v0.1.0
@red-hat-developer-hub/backstage-plugin-mui4-test workspaces/theme/plugins/mui4-test none v0.1.0
@red-hat-developer-hub/backstage-plugin-mui5-test workspaces/theme/plugins/mui5-test none v0.1.0
@red-hat-developer-hub/backstage-plugin-theme workspaces/theme/plugins/theme none v0.4.9

@mareklibra mareklibra force-pushed the FLPATH-1960.gitCommitPrettier branch from 8673a9e to ab8e255 Compare December 19, 2024 13:07
Copy link

@gciavarrini gciavarrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mareklibra mareklibra force-pushed the FLPATH-1960.gitCommitPrettier branch from ab8e255 to b2797f4 Compare December 19, 2024 13:17
@gciavarrini gciavarrini self-requested a review December 19, 2024 13:26
Copy link

@gciavarrini gciavarrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore all the generated files and revert the changes

@mareklibra mareklibra force-pushed the FLPATH-1960.gitCommitPrettier branch 7 times, most recently from bb327d3 to f3eda57 Compare December 19, 2024 17:21
@mareklibra mareklibra force-pushed the FLPATH-1960.gitCommitPrettier branch from f3eda57 to c657a3a Compare December 20, 2024 08:32
@mareklibra mareklibra force-pushed the FLPATH-1960.gitCommitPrettier branch from c657a3a to 91f9285 Compare December 21, 2024 21:01
Copy link
Member

@christoph-jerolimov christoph-jerolimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mareklibra, this looks much better now. But can you take a look into the root package.json and yarn.lock?

@@ -15,25 +15,50 @@
"type": "module",
"packageManager": "[email protected]",
"devDependencies": {
"@backstage/catalog-model": "^1.7.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should not add this kind of dependencies to the root package.json

Comment on lines +34 to +37
"axios": "^1.7.9",
"chalk": "^5.4.0",
"commander": "^12.1.0",
"cross-fetch": "^4.0.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be needed here.

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.

4 participants