@typescript-eslint/no-non-null-asserted-optional-chain
Disallows using a non-null assertion after an optional chain expression
The Codiga Static Analysis engine checks TypeScript code and supports many popular libraries. If you are using React, NextJS, Vue or Angular: the engine will flag any issue in your codebase. Automate your code reviews with Codiga and merge with confidence.
Disallows using a non-null assertion after an optional chain expression
Detect dependency cycles from your project as in two modules depending on each other
Aims to remove modules with side-effects by reporting when a module is imported but not assigned.
Promise executor functions should not be async.
Detect the use of operator (e.g <=, <, ===, etc) to compare against -0.
Disallows constant expressions in the test condition of: if, for, while, do...while, or ternary operations (?:)
Disallow control characters in regular expressions.
Detects any debugger statement
Disallow empty block statements.
Disallows unnecessary boolean casts.
Disallows calling some Object.prototype methods directly on object instances.
Disallows sparse array literals which have "holes" where commas are not preceded by elements.
Detect missing key prop
Prevents comment strings (e.g. beginning with // or /*) from being accidentally injected as a text node in JSX statements.
Disallow undeclared variables in JSX
Prevent invalid characters from appearing in markup
Prevent missing React when using JSX
Incorrect handling of switch
Assign object to a variable before exporting as module default
Disallows literal numbers that lose precision.
We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.