Skip to content

Commit

Permalink
Configure prettier.ignorePath for Visual Studio Code (#80)
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
kkosiorowska authored Dec 18, 2023
2 parents 38fd08c + 4e35fed commit 236255c
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 236255c

Please sign in to comment.