The answer is scattered in all of these answers so I'll consolidate (because it could be the same as my problem, more than 1 setting not configured correctly)
This should fix it, but make sure that your .prettierignore file is also set (just a little bit above the path option).
If you're using prettier globally vs locally, make sure the prettier path is set to your global install location (you can figure this out by typing $which prettier
providing that you're using Linux.