|
1 | 1 | { |
| 2 | + // TypeScript — use workspace version (not VS Code's bundled one) |
| 3 | + "typescript.tsdk": "node_modules/typescript/lib", |
| 4 | + "typescript.enablePromptUseWorkspaceTsdk": true, |
| 5 | + |
| 6 | + // ESLint — flat config support |
| 7 | + "eslint.useFlatConfig": true, |
2 | 8 | "eslint.workingDirectories": [ |
3 | | - { |
4 | | - "mode": "auto" |
5 | | - } |
| 9 | + { "pattern": "apps/*" }, |
| 10 | + { "pattern": "packages/*" } |
6 | 11 | ], |
7 | | - "typescript.tsdk": "node_modules/typescript/lib", |
8 | | - "css.lint.unknownAtRules": "ignore", |
9 | | - "scss.lint.unknownAtRules": "ignore", |
10 | | - "less.lint.unknownAtRules": "ignore" |
| 12 | + |
| 13 | + // Formatting — let ESLint handle it, disable built-in formatters |
| 14 | + "editor.formatOnSave": true, |
| 15 | + "editor.defaultFormatter": "dbaeumer.vscode-eslint", |
| 16 | + "editor.codeActionsOnSave": { |
| 17 | + "source.fixAll.eslint": "explicit" |
| 18 | + }, |
| 19 | + |
| 20 | + // Tailwind CSS v4 |
| 21 | + "tailwindCSS.experimental.classRegex": [ |
| 22 | + ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], |
| 23 | + ["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] |
| 24 | + ], |
| 25 | + "tailwindCSS.includeLanguages": { |
| 26 | + "typescript": "javascript", |
| 27 | + "typescriptreact": "javascript" |
| 28 | + }, |
| 29 | + |
| 30 | + // File associations |
| 31 | + "files.associations": { |
| 32 | + "*.css": "tailwindcss" |
| 33 | + }, |
| 34 | + |
| 35 | + // Search and file exclusions |
| 36 | + "search.exclude": { |
| 37 | + "**/node_modules": true, |
| 38 | + "**/dist": true, |
| 39 | + "**/.next": true, |
| 40 | + "**/.turbo": true, |
| 41 | + "**/storybook-static": true, |
| 42 | + "**/coverage": true, |
| 43 | + "**/.source": true |
| 44 | + }, |
| 45 | + "files.exclude": { |
| 46 | + "**/.turbo": true |
| 47 | + }, |
| 48 | + |
| 49 | + // Editor defaults for the project |
| 50 | + "editor.tabSize": 2, |
| 51 | + "editor.insertSpaces": true, |
| 52 | + |
| 53 | + // File nesting for cleaner explorer |
| 54 | + "explorer.fileNesting.enabled": true, |
| 55 | + "explorer.fileNesting.patterns": { |
| 56 | + "package.json": "pnpm-lock.yaml, pnpm-workspace.yaml, .nvmrc, turbo.json, .gitignore, .npmrc", |
| 57 | + "tsconfig.json": "tsconfig.*.json", |
| 58 | + "eslint.config.*": ".eslintignore" |
| 59 | + } |
11 | 60 | } |
0 commit comments