Skip to content

Commit

Permalink
fix(sage-monorepo): fix VS Code config for formatting JSON and JSONC …
Browse files Browse the repository at this point in the history
…files (#2787)
  • Loading branch information
tschaffter authored Aug 31, 2024
1 parent d07f4df commit 95f6051
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"singleQuote": true,
"printWidth": 100,
"xmlWhitespaceSensitivity": "ignore"
}
}
20 changes: 15 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down Expand Up @@ -55,7 +59,9 @@
// }
// ]
// },
"eslint.workingDirectories": ["."],
"eslint.workingDirectories": [
"."
],
"sqltools.autoOpenSessionFiles": false,
"sqltools.connections": [
{
Expand Down Expand Up @@ -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"
}
}

0 comments on commit 95f6051

Please sign in to comment.