Skip to content

Commit

Permalink
Create VS Code Workspace and Editor Config files (#2843)
Browse files Browse the repository at this point in the history
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
sslaws authored Feb 27, 2024
1 parent 33c5e6c commit 4dcc9c0
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
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
93 changes: 93 additions & 0 deletions sims.code-workspace
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"
}
}

0 comments on commit 4dcc9c0

Please sign in to comment.