After enabling the format on save, please do not forget to set config for Prettier: Require Config so that VS code will format code for each project based on prettierrc file.