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
Warning

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

Learn more

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

Best practice
Warning

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

@typescript-eslint/restrict-template-expressions

Best practice
Warning

Enforce template literal expressions to be of string type

jest/expect-expect

Best practice
Warning

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

jest/no-conditional-expect

Best practice
Warning

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

jsx-a11y/iframe-has-title

Best practice
Warning

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

jsx-a11y/label-has-associated-control

Best practice
Warning

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

jsx-a11y/media-has-caption

Best practice
Warning

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
Warning

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

jsx-a11y/no-noninteractive-element-interactions

Best practice
Warning

Accessibility: disallow interactions in no interactive elements.

jsx-a11y/no-noninteractive-tabindex

Best practice
Warning

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

sonarjs/no-duplicate-string

Best practice
Warning

Find duplicate string

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.