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

Split out prettier, add prettierrc. #2504

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

romain-growthbook
Copy link
Contributor

@romain-growthbook romain-growthbook commented May 10, 2024

Following the debacle around upgrading TS and prettier, it became pretty clear that we should be able to upgrade our formatting toolchain or our linting toolchain without impacting each other.

This PR splits out formatting from linting. This is inline with the most recent recommendations from eslint: https://eslint.org/blog/2023/10/deprecating-formatting-rules/

A .prettierc file is added to maintain consistency accros editors and formatting setups.

Some changes will happen in the existing code, mostly around max line width. This might be related to how prettier makes line breaking decisions vs. eslint. See: https://prettier.io/docs/en/options.html#print-width

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

1 participant