Skip to main content

Type-Aware Linting Without Surprises

ยท One min read
Nick2bad4u
Project Maintainer

Type-aware rules are powerful, but they can be expensive or confusing when not designed carefully.

Design constraintsโ€‹

  • Keep type-checker calls targeted.
  • Avoid repeated expensive lookups in hot paths.
  • Fail gracefully when parser services are unavailable.

UX contractโ€‹

If a rule requires type information, documentation should state it and explain setup expectations.

Maintainers should optimize for predictable behavior and reliable performance over clever but fragile analysis.