2025-06-12

Prettier

Prettier formats code, both JavaScript and CSS, preferably on Save.

Prettier is installed with npm install in each project and controlled by a couple of configuration files in the repository.

PhpStorm settings

Then you can also run the following to format with Prettier too:

But also, the option to check "On save" in Prettier, seems to work well if you remember sneaking in a // prettier-ignore or // eslint-disable-next-line xx-xxx here and there to get what you want.

... Jump to the next "error" by pressing F2.