Skip to content

Commit

Permalink
chore(vscode): Multi-root Workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyme committed Oct 26, 2024
1 parent b8a39e4 commit a93b6c3
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 26 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ run.bat
api-docs.json
*.log
/redis
*.code-workspace
.DS_Store
/files
ormconfig.json
Expand Down
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"Orta.vscode-jest",
"mrmlnc.vscode-json5",
"github.vscode-github-actions",
"redhat.vscode-yaml"
]
"redhat.vscode-yaml",
],
}
19 changes: 8 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
{
"search.exclude": {
"**/node_modules": true
},
"typescript.tsdk": "node_modules/typescript/lib",
"files.associations": {
"*.test.ts": "typescript"
"**/node_modules": true,
},
"jest.jestCommandLine": "pnpm run jest",
"jest.runMode": "on-demand",
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
"source.fixAll": "explicit",
},
"editor.formatOnSave": false,
"typescript.tsdk": "./node_modules/typescript/lib",
"yaml.schemas": {
"https://json.schemastore.org/github-action.json": [
".github/actions/**/action.yaml",
".github/actions/**/action.yml"
".github/actions/**/action.yml",
],
"https://json.schemastore.org/github-issue-config.json": [
".github/ISSUE_TEMPLATE/config.yml"
]
}
".github/ISSUE_TEMPLATE/config.yml",
],
},
}
25 changes: 18 additions & 7 deletions packages/backend/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib",
"path-intellisense.mappings": {
"@": "${workspaceRoot}/packages/backend/src/"
},
"editor.formatOnSave": true,
// "path-intellisense.mappings": {
// "@": "${workspaceRoot}/packages/backend/src/"
// },
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll": true
}
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never",
"source.removeUnusedImports": "never",
"source.sortImports": "never",
},
"eslint.useFlatConfig": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
],
"typescript.tsdk": "./node_modules/typescript/lib",
}
21 changes: 16 additions & 5 deletions packages/frontend/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib",
"path-intellisense.mappings": {
"@": "${workspaceRoot}/packages/frontend/src/"
// "path-intellisense.mappings": {
// "@": "${workspaceRoot}/packages/frontend/src/"
// },
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never",
"source.removeUnusedImports": "never",
"source.sortImports": "never",
},
"eslint.useFlatConfig": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"vue"
]
"typescript",
"typescriptreact",
"vue",
],
"typescript.tsdk": "./node_modules/typescript/lib",
}
52 changes: 52 additions & 0 deletions taiyme.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"folders": [
{
"name": "root",
"path": ".",
},
{
"name": "backend",
"path": "./packages/backend",
},
{
"name": "frontend",
"path": "./packages/frontend",
},
{
"name": "frontend-embed",
"path": "./packages/frontend-embed",
},
],
"settings": {
"search.exclude": {
"**/node_modules": true,
},
"jest.jestCommandLine": "pnpm run jest",
"jest.runMode": "on-demand",
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
},
"typescript.tsdk": "./node_modules/typescript/lib",
"yaml.schemas": {
"https://json.schemastore.org/github-action.json": [
".github/actions/**/action.yaml",
".github/actions/**/action.yml",
],
"https://json.schemastore.org/github-issue-config.json": [
".github/ISSUE_TEMPLATE/config.yml",
],
},
},
"extensions": {
"recommendations": [
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint",
"Vue.volar",
"Orta.vscode-jest",
"mrmlnc.vscode-json5",
"github.vscode-github-actions",
"redhat.vscode-yaml",
],
},
}

0 comments on commit a93b6c3

Please sign in to comment.