InstructionsForAI
typescript-strict-mode-standards.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---alwaysApply: true--- ## TypeScript Configuration Always use TypeScript strict mode in all projects. ### Required tsconfig.json settings ```json{ "compilerOptions": { "strict": true, "noImplicitAny": true, "strictNullChecks": true, "noImplicitReturns": true }}``` ### Type Safety Rules - Never use `any` type - use `unknown` instead- Always define return types for functions- Use type guards for narrowing- Prefer interfaces over type aliases for object shapes
MDC (Frontmatter)Markdown