From b9bdbf52c6d675c607e322b2b7647658c2a8815f Mon Sep 17 00:00:00 2001 From: Alan Cooney <41682961+alan-cooney@users.noreply.github.com> Date: Wed, 13 Dec 2023 06:57:52 -0300 Subject: [PATCH] Enable prettier for json --- .vscode/settings.json | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 62d6d9a..9f891aa 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,17 +1,9 @@ { - "[jsonc]": { - "editor.defaultFormatter": "vscode.json-language-features" - }, - "[python]": { - "editor.defaultFormatter": "charliermarsh.ruff" - }, - "[toml]": { - "editor.defaultFormatter": "tamasfe.even-better-toml" - }, - "editor.codeActionsOnSave": { - "source.fixAll.eslint": "explicit", - "source.organizeImports": "explicit" - }, + "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, + "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, + "[python]": { "editor.defaultFormatter": "charliermarsh.ruff" }, + "[toml]": { "editor.defaultFormatter": "tamasfe.even-better-toml" }, + "editor.codeActionsOnSave": { "source.organizeImports": "explicit" }, "editor.formatOnSave": true, "evenBetterToml.formatter.allowedBlankLines": 1, "evenBetterToml.formatter.arrayAutoCollapse": true, @@ -33,6 +25,8 @@ "evenBetterToml.syntax.semanticTokens": false, "notebook.formatOnCellExecution": true, "notebook.formatOnSave.enabled": true, + "prettier.printWidth": 100, + "pylint.ignorePatterns": ["*"], "python.analysis.autoFormatStrings": true, "python.analysis.inlayHints.functionReturnTypes": false, "python.analysis.typeCheckingMode": "basic", @@ -40,8 +34,5 @@ "python.terminal.activateEnvInCurrentTerminal": true, "python.testing.pytestEnabled": true, "rewrap.autoWrap.enabled": true, - "rewrap.wrappingColumn": 100, - "pylint.ignorePatterns": [ - "*" - ] -} \ No newline at end of file + "rewrap.wrappingColumn": 100 +}