Ref. article : https:
Other option is to enable Prettier only when a configuration file is present in the project.
To enable this option open VSCode settings:
On Windows/Linux - File > Preferences > Settings
On macOS - Code > Preferences > Settings
Search for "Prettier:Require Config" and make sure it is checked
So how does this work?
By turning on this option, Prettier will only work for the projects having valid .prettierrc file.
A valid .prettierrc could be as simple as having just opening and closing curly braces as follows:
{}