Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
I would like to have a more general version of@typescript-eslint/no-angle-bracket-type-assertion
, maybe calledtype-assertion
. It would have two options, that can be enabled independently:
no-angle-bracket
: If this is enabled, angle bracket type assertions are disallowed.no-as
: If this is enabled,as
type assertions are disallowed.
This would allow different use cases. Some people like to use the old assertions instead of the new ones. Personally, I would like to lint all type casting since they introduce unsafety.
The default behaviour would be['no-angle-bracket']
to match the current situation. If no options are enabled, the lint could warn that the lint can be disabled.