From 6ea6e1c26709a5310724e7848db7e8e705ec230e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Wed, 20 Jul 2022 09:10:40 +0800 Subject: [PATCH] chore: update settings.json --- .vscode/settings.json | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index a1d5f2e..b91edea 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,8 +1,31 @@ { "files.eol": "\n", - "editor.formatOnSave": false, + + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "prettier.printWidth": 120, + "prettier.singleQuote": true, + "prettier.semi": false, + "prettier.endOfLine": "lf", + + "[javascript]": { + "editor.formatOnSave": false + }, + "[typescript]": { + "editor.formatOnSave": false + }, + "[typescriptreact]": { + "editor.formatOnSave": false + }, + "[vue]": { + "editor.formatOnSave": false + }, "eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"], "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, + "files.associations": { + "*.env.*": "dotenv", + "*.css": "postcss" + } }