DEV Community


Discussion on: Start Using Prettier The Right Way

nikolahristov profile image
Niki Hristov • Edited

I've hosted my full Prettier config at

It sits in my main Developer folder and everything underneath obeys it along with my .editorconfig file


That way I don't have to install prettier in every JavaScript project I'm working on and VSCode takes care of the formatting automatically for projects that reside there.

michaelcurrin profile image

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.

akinghill profile image
Austin Hill Author

Clever! I'm definitely going to give this a try. Thanks for sharing!