# typescript Strict TypeScript baseline: no any, narrowing on unknown, exhaustive switches, no enums. ```bash npx rulepack add typescript ``` ## What it covers - A strict tsconfig baseline kept on: `strict`, `noUncheckedIndexedAccess`, `noImplicitOverride`, `noFallthroughCasesInSwitch`, `noUnusedLocals` / `noUnusedParameters`, `verbatimModuleSyntax` - Type discipline: never `any` (type as `unknown` and narrow), union literals over enums, `satisfies` for conformance, `as` only as a last resort with a comment - Patterns: discriminated unions for state machines, `Result`-style returns over throwing for expected failures, branded types for IDs - Module shape: types exported alongside their values, `import type { … }` for type-only imports, explicit export surface instead of catch-all barrels ## Source Rules align with the official TypeScript handbook & tsconfig reference: https://www.typescriptlang.org/tsconfig ## License MIT