-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create VS Code Workspace and Editor Config files (#2843)
Creates an editor config which sets defaults for the entire project (lf, 2 space tab, etc) Created a multi-root workspace with extension recommendations, default search excludes, format on save etc. <img width="1374" alt="image" src="https://github.com/bcgov/SIMS/assets/51342761/5396279d-788f-4013-98cd-1305fd9e1005">
- Loading branch information
Showing
2 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
charset = utf-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"name": "Web UI", | ||
"path": "./sources/packages/web" | ||
}, | ||
{ | ||
"name": "Backend", | ||
"path": "./sources/packages/backend" | ||
}, | ||
{ | ||
"name": "Forms", | ||
"path": "./sources/packages/forms" | ||
}, | ||
{ | ||
"name": "DevOps", | ||
"path": "./devops" | ||
}, | ||
{ | ||
"name": "Load Tests", | ||
"path": "./sources/packages/load-test" | ||
}, | ||
{ | ||
"name": "All", | ||
"path": "." | ||
} | ||
], | ||
"extensions": { | ||
"recommendations": [ | ||
"vue.volar", | ||
"vue.vscode-typescript-vue-plugin", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"streetsidesoftware.code-spell-checker", | ||
"aaron-bond.better-comments", | ||
"ms-vscode.js-debug-nightly", | ||
"adpyke.vscode-sql-formatter", | ||
"redhat.vscode-yaml" | ||
] | ||
}, | ||
"tasks": { | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "View Outdated Web Packages", | ||
"type": "shell", | ||
"command": "npm outdated", | ||
"options": { | ||
"cwd": "${workspaceFolder:Web UI}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "View Outdated Backend Packages", | ||
"type": "shell", | ||
"command": "npm outdated", | ||
"options": { | ||
"cwd": "${workspaceFolder:Backend}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "View Outdated Forms Packages", | ||
"type": "shell", | ||
"command": "npm outdated", | ||
"options": { | ||
"cwd": "${workspaceFolder:Forms}" | ||
}, | ||
"problemMatcher": [] | ||
} | ||
] | ||
}, | ||
"settings": { | ||
"eslint.workingDirectories": [{ "mode": "auto" }], | ||
"search.exclude": { | ||
"**/bin": true, | ||
"**/obj": true, | ||
"**/dist": true, | ||
"**/node_modules": true | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"editor.guides.bracketPairs": true, | ||
"[vue][typescript][javascript]": { | ||
"editor.formatOnSave": false, | ||
"editor.codeActionsOnSave": { | ||
"source.addMissingImports": "explicit", | ||
"source.fixAll.eslint": "explicit" | ||
} | ||
}, | ||
"typescript.preferences.importModuleSpecifier": "non-relative" | ||
} | ||
} |