Skip to content

Prettier config improvements #234

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

Merged
merged 3 commits into from
Mar 23, 2025
Merged

Prettier config improvements #234

merged 3 commits into from
Mar 23, 2025

Conversation

alexsapps
Copy link
Collaborator

@alexsapps alexsapps commented Mar 18, 2025

  • Move all prettier config to root directory.
  • Use prettier on all file types that it supports in VS Code and make fmt for consistency and to avoid spelling out every langauge to use it on.
  • Require use of config file to run prettier in VS Code to avoid conflicting defaults between versions of prettier, and add config at root of project.
  • Format unformatted files (some mjs files were not formatted previously).

@alexsapps alexsapps requested a review from jakehobbs March 18, 2025 19:01
Copy link
Member

Choose a reason for hiding this comment

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

is this getting formatted? i think ideally lock files that are autogenerated don't get touched.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

whoops. fixed that and also realized prettier configs can't be nested so i moved all the config to the root directory.

@alexsapps alexsapps force-pushed the alex/prettier branch 2 times, most recently from 71b856c to 8188901 Compare March 23, 2025 22:22
* Define prettier config in a consistent way (always use .prettierrc.json
  file in both frontend packages).
* Use prettier on all file types that it supports in VS Code and make
  fmt for consistency and to avoid spelling out every langauge to use it
  on.
* Require use of config file to run prettier in VS Code to avoid
  conflicting defaults between versions of prettier, and add config at
  root of project.
* Format unformatted files (some mjs files were not formatted previously).
@alexsapps alexsapps force-pushed the alex/prettier branch 2 times, most recently from 1dee114 to 77897a6 Compare March 23, 2025 22:33
Since prettier does not support nested configs.
@alexsapps alexsapps merged commit 4bd2db2 into main Mar 23, 2025
1 check passed
@alexsapps alexsapps deleted the alex/prettier branch March 23, 2025 22:40
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.

2 participants