Re:Node.js can now execute TypeScript files
by ZYbCRq22HbJ2y7 on Monday August 18, 2025 @07:50PM
(#44946657)
> Using it as a precommit hook in OSS projects makes it so that people can write code however they want.
That is the point of a formatter, so any formatter would do that (and there were many more active projects to allow formatting before prettier came around).
> quite some extent
Not really, and I have written prettier plugins to get around that constraint.
IMO, its not great, which is kind of how things work out when you try to do everything in one project.
Re:Node.js can now execute TypeScript files
by nake89 on Tuesday August 19, 2025 @01:56AM
(#44948646)
> That is the point of a formatter, so any formatter would do that (and there were many more active projects to allow formatting before prettier came around).
No arguments here. You are free to choose the formatter you want.
> Not really, and I have written prettier plugins to get around that constraint.
Or you could simply use those better formatters you were talking about.
Even though prettier has defaults, but they can be modified to quite some extent to suit your projects needs: https://prettier.io/docs/options