Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

quality.architecture

Keep module public surface narrow

Modules exporting too many symbols become hard to evolve safely.

#Metadata

Rule ID
ts.quality.no-wide-public-surface
Severity
medium
Confidence
0.84
Languages
javascript, typescript
Presets
strict
Stability
stable
Applies to
file
Tags
architecture, quality, rules-catalog

#Why it matters

Broad module APIs increase accidental coupling and long-term maintenance cost.

#Remediation

Split APIs, hide internals, or create focused entrypoints with fewer exports.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.quality.no-wide-public-surface.rule.yaml.