TypeScript
TypeScript types, functions, modules, and compiler configuration.
Filters
Rules
20 rules in 1 library
Avoid silencing the type checker
HIGHfabricahq/public-library 1 star
Annotate types at module boundaries and where they narrow
MEDIUMfabricahq/public-library
Declare constants with as const, and satisfies when a type exists
MEDIUMfabricahq/public-library
Define every property of a domain type
MEDIUMfabricahq/public-library
Distinguish null from undefined
LOWfabricahq/public-library
Follow consistent naming conventions
LOWfabricahq/public-library
Generate service types from their contracts
HIGHfabricahq/public-library
Give exported TypeScript interfaces and non-obvious functions doc comments stating their intent
MEDIUMfabricahq/public-library
Import types with import type
MEDIUMfabricahq/public-library
Model distinct states as discriminated unions
MEDIUMfabricahq/public-library
Narrow unknown values before use
HIGHfabricahq/public-library
Prefer literal unions over enums
MEDIUMfabricahq/public-library
Prefer type aliases over interfaces
LOWfabricahq/public-library
Preserve caller-owned data
MEDIUMfabricahq/public-library
Require caller-owned inputs and document defaults
MEDIUM-HIGHfabricahq/public-library
Use Boolean() for explicit boolean coercion
LOWfabricahq/public-library
Use named exports
LOWfabricahq/public-library
Use one array type syntax
LOWfabricahq/public-library
Use predictable file names
LOWfabricahq/public-library
Use template literal types for patterned strings
LOW-MEDIUMfabricahq/public-library