Closed mikew closed 1 year ago
I'm looking to add this rule to my teams linter, and am brushing up on potential other rules to add from @typescript-eslint, and noticed it has:
@typescript-eslint
'@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'never' }]
which disallows type assertions, and:
'@typescript-eslint/no-non-null-assertion': ['error']
which disallows non-null assertions.
Is the special handling of unknown the big differentiator with the rule in this repo?
unknown
Pretty much. See also the thread here.
I'm looking to add this rule to my teams linter, and am brushing up on potential other rules to add from
@typescript-eslint
, and noticed it has:which disallows type assertions, and:
which disallows non-null assertions.
Is the special handling of
unknown
the big differentiator with the rule in this repo?