Prettier

Code Formatting for JavaScript, JSX, TypeScript, and more

Visit Website

For JavaScript, TypeScript, or JSX projects, the Prettier code formatter is a great choice that provides you with a set of sensible defaults.

You could try and come up with your own style guide for each of these languages, or you can simply use the Prettier defaults to automatically format your code.

Prettier works really well with pre-commit hooks for Git to make sure that your code is formatted properly. This means that your continuous integration format checks will pass, and youโ€™ll also avoid having to think about code formatting as much while writing code.