DEV Community

loading...

Discussion on: Start Using Prettier The Right Way

Collapse
michaelcurrin profile image
Michael

If you want keep it that shorter, you can remove options which are already the same as Prettier defaults. Like semi and quotes.

Also I noticed your style of indent 4 and using tabs is not the prevailing style I've noticed in the JS community. So if anyone contributes to your repo and that don't have your Prettier config, they may conflict with you.

Another approach based on Sharing configuration section of this doc is to publish your config as a NPM package, even if it's only on GitHub. Then you can install your own package in all your own projects. This means that you and anyone else who works on your projects can share the same config file.