From 64877d4299d015402df455047fceb316e34440f4 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Thu, 28 Apr 2022 17:25:21 +0000 Subject: [PATCH] fix black not auto formatting --- .vscode/settings.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index dacaf37e..b425d2a1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -27,8 +27,14 @@ "editor.bracketPairColorization.enabled": true, "editor.guides.bracketPairs": true, "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.codeActionsOnSave": ["source.fixAll.eslint"], + "[vue]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.codeActionsOnSave": ["source.fixAll.eslint"], + }, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.codeActionsOnSave": ["source.fixAll.eslint"], + }, "eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"], "typescript.tsdk": "node_modules/typescript/lib", "files.watcherExclude": {