@rulepack/pay-demo

v0.1.0Pay

Demo paid pack — preview the pay-gate. Files unlock with purchase (checkout coming soon).

Updated 6/5/20260 files | 0 Bytes

This is a paid pack

The README and what's inside are shown above. The memory files unlock with purchase — paid checkout is coming soon.

Downloads

0

Stars

0

Views

1

typescript

Strict TypeScript baseline: no any, narrowing on unknown, exhaustive switches, no enums.

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<T, E>-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