2 ms·
They're discouraged because they conflict with JSX. For instance, in the eslint documentation: > Most codebases will want to enforce not using angle-bracket st
by wk_end 2y ago
They're discouraged because they conflict with JSX. For instance, in the eslint documentation:
> Most codebases will want to enforce not using angle-bracket style because it conflicts with JSX syntax, and is confusing when paired with generic syntax.
https://typescript-eslint.io/rules/consistent-type-assertions/ https://typescript-eslint.io/rules/consistent-type-assertion...
- paulddraper 2y agoThat's true, but this tool is made for users not using TSX. (Or at least, they can't use this tool with it.)
- animuchan 2y agoThe phrasing sounds a bit odd: surely "most codebases" don't use JSX, so why would they enforce anything JSX-related.