feat: add code style (#242)

This commit is contained in:
Joel
2023-05-29 17:49:01 +08:00
committed by GitHub
parent 408fb502a1
commit 091beffae7
7 changed files with 53 additions and 8 deletions

23
web/.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,23 @@
{
"prettier.enable": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
"[python]": {
"editor.formatOnType": true
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[javascriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
}
}