add vscode formatting settings

This commit is contained in:
wh1te909
2020-08-19 21:49:23 +00:00
parent 7ed22368f5
commit d4a25cda3b
2 changed files with 39 additions and 2 deletions

2
.gitignore vendored
View File

@@ -9,7 +9,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
@@ -19,7 +18,6 @@ yarn-error.log*
*.pot
*.pyc
*.pid
.vscode
__pycache__/
env/
local_settings.py

39
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,39 @@
{
"python.pythonPath": "api/env/bin/python",
"python.formatting.provider": "black",
"editor.formatOnSave": true,
"vetur.format.defaultFormatter.js": "prettier",
"vetur.format.defaultFormatterOptions": {
"prettier": {
"semi": true,
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"arrowParens": "avoid",
}
},
"vetur.format.options.tabSize": 2,
"vetur.format.options.useTabs": false,
"files.watcherExclude": {
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/": true,
"/node_modules/**": true,
"**/env/": true,
"/env/**": true,
"**/__pycache__": true,
"/__pycache__/**": true,
"**/.cache": true,
"**/.eggs": true,
"**/.ipynb_checkpoints": true,
"**/.mypy_cache": true,
"**/.pytest_cache": true,
"**/*.egg-info": true,
"**/*.feather": true,
"**/*.parquet*": true,
"**/*.pyc": true,
"**/*.zip": true
},
},
}