From 4e35fedd42def083acaeba1e251bfb26ec4fe4ce Mon Sep 17 00:00:00 2001 From: Jakub Nowakowski Date: Mon, 18 Dec 2023 13:38:23 +0100 Subject: [PATCH] Configure prettier.ignorePath for Visual Studio Code 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. --- .vscode/settings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 228768b55..3433b2f2f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "eslint.workingDirectories": [{ "mode": "auto" }] + "eslint.workingDirectories": [{ "mode": "auto" }], + "prettier.ignorePath": "" }