Prettier is a tool that allows your code to be automatically formatted according to certain rules.
This is the magic that happens when you save a file:
So I have created for my own reference a starter configuration that enables your projects to highlight errors and format code on save according to Prettier rules.
This is the content of the repository:
You will need the Prettier, Eslint and stylelint packages for VS Code.
You can find the code here: github.com/akmur/react-prettier-setup