We have several rules that specify how to format code manually (for example, 19.x).
In some projects (for example DaaS, BuildingBrief, Kinola), we have started using Prettier for automatic code formatting.
It doesn't always do a perfect job, but it's good enough, especially given how much time it saves (in both initial editing as well as code reviews).
Should we perhaps recommend its use more widely instead of the manual rules?
With a recommended configuration, for example:
We have several rules that specify how to format code manually (for example, 19.x).
In some projects (for example DaaS, BuildingBrief, Kinola), we have started using Prettier for automatic code formatting. It doesn't always do a perfect job, but it's good enough, especially given how much time it saves (in both initial editing as well as code reviews).
Should we perhaps recommend its use more widely instead of the manual rules? With a recommended configuration, for example:
Ideally I'd like to add
semi: false,
as well. 3 years ago, the "no semicolons" proposal was rejected, but maybe times have changed? 🤓