Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Switch to prettier defaults #1656

Merged
merged 1 commit into from
Feb 24, 2024
Merged

Switch to prettier defaults #1656

merged 1 commit into from
Feb 24, 2024

Conversation

mnvr
Copy link
Member

@mnvr mnvr commented Feb 24, 2024

This is unfortunately a huge diff, but now is as good as ever to do this pending chore.

  • Move to prettier (v3) defaults. The only thing we tweak is the tabWidth (the default is 2, we change it to 4).

  • Use the prettier plugin to sort imports.

We were not changing the defaults of prettier much anyway, the main thing that has changed is the switching from the overridden single quotes to the default double quotes.


Note: I did not manually change any lines of code, this is all done by yarn prettier --write . The only manual change I made was moving all the new .prettierrc.json files to the top level.

This is unfortunately a huge diff, but now is as good as ever to do this pending chore.

- Move to prettier (v3) defaults. The only thing we tweak is the tabWidth (the
  default is 2, we change it to 4).

- Use the prettier plugin to sort imports.

We were not changing the defaults of prettier much anyway, the main thing that
has changed is the switching from the overridden single quotes to the default
double quotes.
@mnvr mnvr merged commit 8b1d33e into main Feb 24, 2024
3 checks passed
@mnvr mnvr deleted the prettier-defaults branch February 24, 2024 08:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant