facebook pixelCodiga Analysis JavaScript Rules, severity error , 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-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/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.