expressjs / expressjs.com

https://expressjs.com
Other
5.26k stars 1.48k forks source link

Use a code formatter #1596

Open bjohansebas opened 2 months ago

bjohansebas commented 2 months ago

Implementing a formatter like Prettier or Biome would help maintain better consistency in code style. Although standard.js already handles the style, it's only for JavaScript. It would be better to have a tool capable of maintaining consistency in HTML, CSS, or any other language in the repository as well.

cc: @crandmck

chrisdel101 commented 2 months ago

I'd be open to this since we are the only main contributors working right now, and it'd make for a better developer experience. But its a non trivial amount of work to maintain formatting across a team of many people.

It would either help us get rid of prettifying junk in our PRs, or it could make it worse.

Not a bad suggestion though!

crandmck commented 2 months ago

This is reasonable, but I'm not sure it's worth the effort. I have some other suggestions that might have more value--will try to find time to put them in an issue.