Skip to content

Add Prettier config#154

Merged
Pomax merged 1 commit into
mainfrom
prettier-config
Feb 17, 2026
Merged

Add Prettier config#154
Pomax merged 1 commit into
mainfrom
prettier-config

Conversation

@RoelN

@RoelN RoelN commented Feb 17, 2026

Copy link
Copy Markdown
Collaborator

I accidentally ran formatting, apparently, which changed all the files to my global config. This PR adds a simple Prettier config so we can be sure the desired formatting is enforced.

So we actually enforce a style!
@RoelN RoelN requested a review from Pomax February 17, 2026 14:47
@Pomax

Pomax commented Feb 17, 2026

Copy link
Copy Markdown
Owner

The power of prettier is that it just "does the right thing already" without needing a conf - is your editor set to use a different formatter?

@RoelN

RoelN commented Feb 17, 2026

Copy link
Copy Markdown
Collaborator Author

If you have a config in a directory above (like I have in ~) or have something set up in your text editor, it'll use that. This way you make sure you have deliberate rules for your project's formatting, instead of relying on there being no other config files Prettier considers so it uses its defaults.

@Pomax

Pomax commented Feb 17, 2026

Copy link
Copy Markdown
Owner

very well. I'm using biome a lot more these days, since it's not written in JS, so it's super fast, but that's overkill for now.

@Pomax Pomax merged commit 9a2ee40 into main Feb 17, 2026
1 check passed
@Pomax Pomax deleted the prettier-config branch February 17, 2026 22:05
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