Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 489 Bytes

no-angle-bracket-type-assertion.md

File metadata and controls

13 lines (7 loc) · 489 Bytes

Pattern: Use of <> type assertion syntax

Issue: -

Description

Requires the use of as Type for type assertions instead of <Type>.

Rationale: Both formats of type assertions have the same effect, but only as type assertions work in .tsx files. This rule ensures that you have a consistent type assertion style across your codebase.

Further Reading