mirror of https://github.com/buster-so/buster.git
112 lines
3.6 KiB
JSON
112 lines
3.6 KiB
JSON
{
|
|
"editor.defaultFormatter": "biomejs.biome",
|
|
"editor.formatOnSave": true,
|
|
"editor.codeActionsOnSave": {
|
|
"quickfix.biome": "explicit",
|
|
"source.organizeImports.biome": "explicit"
|
|
},
|
|
"typescript.preferences.importModuleSpecifier": "relative",
|
|
"typescript.suggest.autoImports": true,
|
|
"typescript.updateImportsOnFileMove.enabled": "always",
|
|
|
|
"vitest.maximumConfigs": 25,
|
|
|
|
// CRITICAL: Enable TypeScript build mode for project references
|
|
"typescript.enablePromptUseWorkspaceTsdk": true,
|
|
"typescript.tsdk": "node_modules/typescript/lib",
|
|
"typescript.preferences.preferTypeOnlyAutoImports": true,
|
|
|
|
// Force TypeScript to use project references
|
|
"typescript.tsserver.useSyntaxServer": "never",
|
|
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
|
|
|
|
// MONOREPO CRITICAL: Force real-time checking
|
|
"typescript.tsserver.watchOptions": {
|
|
"watchFile": "priorityPollingInterval",
|
|
"watchDirectory": "dynamicPriorityPolling",
|
|
"fallbackPolling": "dynamicPriorityPolling",
|
|
"synchronousWatchDirectory": true,
|
|
"excludeDirectories": ["**/node_modules", "**/target", "**/.turbo"],
|
|
"excludeFiles": []
|
|
},
|
|
|
|
// Enable automatic TypeScript build
|
|
"typescript.tsc.autoDetect": "on",
|
|
|
|
// Force TypeScript to track all project references
|
|
"typescript.tsserver.includeCompletionsForModuleExports": true,
|
|
"typescript.tsserver.includePackageJsonAutoImports": "on",
|
|
// CRITICAL: Disable syntax-only mode to get full type checking
|
|
|
|
// Increase memory for large monorepo
|
|
"typescript.tsserver.maxTsServerMemory": 16384,
|
|
|
|
// Force restart on config changes
|
|
"typescript.tsserver.restartOnConfigChange": true,
|
|
|
|
// Ensure dist folders are NEVER excluded from file watching
|
|
"files.watcherExclude": {
|
|
"**/node_modules/**": true,
|
|
"**/.git/objects/**": true,
|
|
"**/.git/subtree-cache/**": true,
|
|
"**/target/**": true,
|
|
"**/.turbo/**": true
|
|
// NOTE: We explicitly DO NOT exclude dist folders from watching
|
|
},
|
|
|
|
// Exclude dist folders from file explorer (but keep them in watcher)
|
|
"files.exclude": {
|
|
"**/.git": true,
|
|
"**/node_modules": false,
|
|
"**/.turbo": true,
|
|
"**/dist": true
|
|
},
|
|
|
|
// Exclude dist folders from search (but keep them in watcher)
|
|
"search.exclude": {
|
|
"**/node_modules": true,
|
|
"**/.git": true,
|
|
"**/.turbo": true,
|
|
"**/dist": true
|
|
},
|
|
|
|
// Enhanced TypeScript settings for monorepo cross-package type checking
|
|
"typescript.preferences.includePackageJsonAutoImports": "on",
|
|
"typescript.suggest.includeAutomaticOptionalChainCompletions": true,
|
|
"typescript.workspaceSymbols.scope": "allOpenProjects",
|
|
"typescript.implementationsCodeLens.enabled": false,
|
|
"typescript.referencesCodeLens.enabled": false,
|
|
|
|
// Force proactive type checking across all files
|
|
"typescript.validate.enable": true,
|
|
"typescript.format.enable": true,
|
|
"typescript.check.npmIsInstalled": false,
|
|
"typescript.disableAutomaticTypeAcquisition": true,
|
|
|
|
// Default Biome formatting for all file types
|
|
"[typescript]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[typescriptreact]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[javascript]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[javascriptreact]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[json]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
|
|
// Resource-specific settings for apps/web directory
|
|
"[{apps/web/**/*.ts,apps/web/**/*.tsx,apps/web/**/*.js,apps/web/**/*.jsx,apps/web/**/*.json}]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.formatOnSave": true,
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": "explicit"
|
|
}
|
|
}
|
|
}
|