facebook pixelCodiga Analysis TypeScript Rules, category error prone
BACK TO LIST

TypeScript rules

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.

@typescript-eslint/no-non-null-asserted-optional-chain

Error prone
Error

Disallows using a non-null assertion after an optional chain expression

Learn more

import/no-cycle

Error prone
Error

Detect dependency cycles from your project as in two modules depending on each other

import/no-unassigned-import

Error prone
Warning

Aims to remove modules with side-effects by reporting when a module is imported but not assigned.

no-async-promise-executor

Error prone
Error

Promise executor functions should not be async.

no-compare-neg-zero

Error prone
Error

Detect the use of operator (e.g <=, <, ===, etc) to compare against -0.

no-constant-condition

Error prone
Error

Disallows constant expressions in the test condition of: if, for, while, do...while, or ternary operations (?:)

no-control-regex

Error prone
Error

Disallow control characters in regular expressions.

no-debugger

Error prone
Error

Detects any debugger statement

no-empty

Error prone
Error

Disallow empty block statements.

no-extra-boolean-cast

Error prone
Error

Disallows unnecessary boolean casts.

no-prototype-builtins

Error prone
Error

Disallows calling some Object.prototype methods directly on object instances.

no-sparse-arrays

Error prone
Error

Disallows sparse array literals which have "holes" where commas are not preceded by elements.

react/jsx-key

Error prone
Error

Detect missing key prop

react/jsx-no-comment-textnodes

Error prone
Error

Prevents comment strings (e.g. beginning with // or /*) from being accidentally injected as a text node in JSX statements.

react/jsx-no-undef

Error prone
Error

Disallow undeclared variables in JSX

react/no-unescaped-entities

Error prone
Error

Prevent invalid characters from appearing in markup

react/react-in-jsx-scope

Error prone
Error

Prevent missing React when using JSX

no-fallthrough

Error prone
Error

Incorrect handling of switch

import/no-anonymous-default-export

Error prone
Warning

Assign object to a variable before exporting as module default

@typescript-eslint/no-loss-of-precision

Error prone
Error

Disallows literal numbers that lose precision.