facebook pixelCodiga Analysis TypeScript Rules
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
      High

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

      Learn more

      import/no-cycle

      Error prone
      High

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

      no-async-promise-executor

      Error prone
      High

      Promise executor functions should not be async.

      no-compare-neg-zero

      Error prone
      High

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

      no-constant-condition

      Error prone
      High

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

      no-control-regex

      Error prone
      High

      Disallow control characters in regular expressions.

      no-debugger

      Error prone
      High

      Detects any debugger statement

      no-empty

      Error prone
      High

      Disallow empty block statements.

      no-extra-boolean-cast

      Error prone
      High

      Disallows unnecessary boolean casts.

      no-prototype-builtins

      Error prone
      High

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

      no-sparse-arrays

      Error prone
      High

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

      react/jsx-key

      Error prone
      High

      Detect missing key prop

      react/jsx-no-comment-textnodes

      Error prone
      High

      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
      High

      Disallow undeclared variables in JSX

      react/no-unescaped-entities

      Error prone
      High

      Prevent invalid characters from appearing in markup

      react/react-in-jsx-scope

      Error prone
      High

      Prevent missing React when using JSX

      no-fallthrough

      Error prone
      High

      Incorrect handling of switch

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

      Error prone
      High

      Disallows literal numbers that lose precision.