facebook pixelCodiga Analysis JavaScript Rules, category safety
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-module-boundary-types

Safety
Error

Ensure that the values returned from a module are of the expected type

Learn more

@typescript-eslint/no-explicit-any

Safety
Critical

Detect any explicit "any" type, it should be replaced by another specific valid type (e.g string, number, boolean)

@typescript-eslint/no-unsafe-assignment

Safety
Error

Disallows assigning any to variables and properties as it creates a potential safety hole, and source of bugs in your codebase.

@typescript-eslint/no-unsafe-call

Safety
Error

Disallows calling an any type value as it creates a potential safety hole, and source of bugs in your codebase.

@typescript-eslint/no-unsafe-member-access

Safety
Error

Disallows member access on any typed variables as it creates a potential safety hole, and source of bugs in your codebase.

@typescript-eslint/no-unsafe-return

Safety
Critical

Disallows returning any from a function

@typescript-eslint/no-use-before-define

Safety
Critical

Disallow the use of variables before they are defined.

@typescript-eslint/unbound-method

Safety
Error

Warns when a method is used outside of a method call.

flowtype/no-weak-types

Safety
Error

Warns against weak type annotations any, Object and Function.

promise/catch-or-return

Safety
Error

Ensure that each time a then() is applied to a promise, a catch() is applied as well. Exceptions are made if you are returning that promise.