How to automatically format code with Prettier