💅 lint/suspicious/noExtraNonNullAssertion triggers for (a!)
#3352
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
Rule name
lint/suspicious/noExtraNonNullAssertion
Playground link
https://biomejs.dev/playground/?code=ZgB1AG4AYwB0AGkAbwBuACAAZABlAG0AbwAoAHYAYQBsAHUAZQA6ACAAcwB0AHIAaQBuAGcAIAB8ACAAbgB1AGwAbAApADoAIABzAHQAcgBpAG4AZwAgAHsACgAgACAAcgBlAHQAdQByAG4AIAAoAHYAYQBsAHUAZQAhACkAOwAKAH0A
Expected result
Forbidden extra non-null assertion should not trigger, and definitely shouldn't be safely auto-fixable.
As it is, forbidden extra non-null assertion triggers and auto-fixes to remove the non-null assertion, despite it clearly being required
Code of Conduct
The text was updated successfully, but these errors were encountered: