-
Notifications
You must be signed in to change notification settings - Fork 886
New Rule: discourage type assertions in favor of type guards #1228
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Relevant: discussion in #2040 on bringing in the equivalent rule from tslint-consistent-codestyle. IMO it'd be better to name this
Note that as ajafff mentioned, copied code without substantial changes needs to retain the original license. |
Note: per #4534, this issue will be closed in less than a month if no PR is sent to add the rule. If you really need the rule, custom rules are always an option and can be maintained outside this repo! |
💀 It's time! 💀TSLint is being deprecated and no longer accepting pull requests for new rules. See #4534. 😱 If you'd like to see this rule implemented, you have two choices:
👋 It was a pleasure open sourcing with you! If you believe this message was posted here in error, please comment so we can re-open the issue! |
🤖 Beep boop! 👉 TSLint is deprecated 👈 (#4534) and you should switch to typescript-eslint! 🤖 🔒 This issue is being locked to prevent further unnecessary discussions. Thank you! 👋 |
Name:
no-type-assertion
no-angle-bracket-type-assertion
ruleFailing code:
Passing code:
The text was updated successfully, but these errors were encountered: