| 1 |
{ |
| 2 |
// The tsc GATE's project (scripts/build/typecheck.js), NOT the editor's. |
| 3 |
// |
| 4 |
// tsconfig.json is the default project every editor picks up, so it has to |
| 5 |
// include test files — otherwise the language server treats them as loose |
| 6 |
// files, drops `paths`/`jsx`/`types`, and paints every `describe`/`expect` |
| 7 |
// red while CI stays green. That split is what this file exists to keep. |
| 8 |
// |
| 9 |
// The gate checks what SHIPS. Test code is looser on purpose — untyped |
| 10 |
// mocks, `as any` doubles, partial fixtures — and running the gate over it |
| 11 |
// surfaced ~300 errors that are noise against "did a production wiring |
| 12 |
// break". Baselining those would have made the baseline meaningless, so the |
| 13 |
// excludes moved here instead of being deleted. |
| 14 |
// |
| 15 |
// Keep this list in sync with anything added to tsconfig.json's include. |
| 16 |
"extends": "./tsconfig.json", |
| 17 |
"exclude": [ |
| 18 |
"react-src/**/__tests__/**", |
| 19 |
"react-src/**/*.test.ts", |
| 20 |
"react-src/**/*.test.tsx", |
| 21 |
"modules/**/__tests__/**", |
| 22 |
"modules/**/*.test.ts", |
| 23 |
"modules/**/*.test.tsx", |
| 24 |
"modules/**/tests/**", |
| 25 |
"modules/**/node_modules/**" |
| 26 |
] |
| 27 |
} |
| 28 |
|