facebook pixelJavaScript Static Analysis Rules
BACK TO LIST

JavaScript rules

The Codiga Static Analysis engine checks JavaScript 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/explicit-member-accessibility

      Best practice
      Medium

      Make code more readable and explicit about who can use which properties

      Learn more

      @typescript-eslint/no-non-null-assertion

      Best practice
      Medium

      Detect all non-null assertions as they cancel the benefits of strict null-checking mode

      @typescript-eslint/restrict-template-expressions

      Best practice
      Medium

      Enforce template literal expressions to be of string type

      jest/expect-expect

      Best practice
      Medium

      Jest: Ensure that there is at least one expect call made in a test.

      jest/no-conditional-expect

      Best practice
      Medium

      Jest: This rule prevents the use of expect in conditional blocks, such as ifs & catchs.

      jsx-a11y/iframe-has-title

      Best practice
      Medium

      <iframe> elements must have a unique title property to indicate its content to the user.

      jsx-a11y/label-has-associated-control

      Best practice
      Medium

      Accessibility: Enforce that a label tag has a text label and an associated control.

      jsx-a11y/media-has-caption

      Best practice
      Medium

      Accessibility: Provide a caption for your media. Providing captions for media is essential for deaf users to follow along.

      jsx-a11y/mouse-events-have-key-events

      Best practice
      Medium

      Accessibility: enforce onmouseover/onmouseout are accompanied by onfocus/onblur.

      jsx-a11y/no-noninteractive-element-interactions

      Best practice
      Medium

      Accessibility: disallow interactions in no interactive elements.

      jsx-a11y/no-noninteractive-tabindex

      Best practice
      Medium

      Tab key navigation should be limited to elements on the page that can be interacted with.

      sonarjs/no-duplicate-string

      Best practice
      Medium

      Find duplicate string