Skip to content

Commit

Permalink
Configure prettier.ignorePath for Visual Studio Code
Browse files Browse the repository at this point in the history
In our monorepo we defined seprate prettier configurations for the
modules and the root directory. VS Code has problems resolving the
prettier ignore configuration, and reads root's file by default, which
ignores the modules from formatting.
Here we specify no file to use with prettier ignore configuration so VS
Code can still work.
  • Loading branch information
nkuba committed Dec 18, 2023
1 parent 38fd08c commit 4e35fed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"eslint.workingDirectories": [{ "mode": "auto" }]
"eslint.workingDirectories": [{ "mode": "auto" }],
"prettier.ignorePath": ""
}

0 comments on commit 4e35fed

Please sign in to comment.