My file structure is as follows:
project/
client/
.prettierrc
.prettierignore
The formatting output in VS Code looks something like this:
["INFO" - 4:31:44 PM] Formatting file:///home/user/dev/project/client/README.md
["INFO" - 4:31:44 PM] Using config file at '/home/user/dev/project/client/.prettierrc'
["INFO" - 4:31:44 PM] Using ignore file (if present) at /home/user/dev/project/.prettierignore
It uses the correct .prettierrc
file but goes one directory higher for the .prettierignore
file which of course, is not present.
Why is this happening and how can I make Prettier use the correct file in project/client/.prettierignore