From 95f6051b918bcf77ffd6367aa62df9efc930ec11 Mon Sep 17 00:00:00 2001 From: Thomas Schaffter Date: Fri, 30 Aug 2024 17:00:45 -0700 Subject: [PATCH] fix(sage-monorepo): fix VS Code config for formatting JSON and JSONC files (#2787) --- .prettierrc | 2 +- .vscode/settings.json | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.prettierrc b/.prettierrc index ced0c3451b..669c187d18 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,4 +2,4 @@ "singleQuote": true, "printWidth": 100, "xmlWhitespaceSensitivity": "ignore" -} +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 59482ff773..b08430e38a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,7 +15,11 @@ // This settings still works even if VS Code does not recognize it. // "notebook.formatOnSave.enabled": true }, - "[json][jsonc]": { + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true + }, + "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true }, @@ -55,7 +59,9 @@ // } // ] // }, - "eslint.workingDirectories": ["."], + "eslint.workingDirectories": [ + "." + ], "sqltools.autoOpenSessionFiles": false, "sqltools.connections": [ { @@ -95,11 +101,15 @@ "java.configuration.updateBuildConfiguration": "disabled", "editor.inlayHints.enabled": "off", "rewrap.wrappingColumn": 100, - "editor.rulers": [100], - "eslint.validate": ["json"], + "editor.rulers": [ + 100 + ], + "eslint.validate": [ + "json" + ], "java.compile.nullAnalysis.mode": "disabled", "typescript.tsdk": "node_modules/typescript/lib", "python.analysis.autoImportCompletions": true, "python.analysis.typeCheckingMode": "basic", "jest.runMode": "on-demand" -} +} \ No newline at end of file