Inspectopedia 2024.3 Help

TypeScript

Abstract class constructor can be made protected   New in this release

Reports a public constructor of an abstract class and suggests making it protected (because it is useless to have it public).

Assigned constructor field parameter   New in this release

Reports a common mistake in TypeScript code, when a class field is declared as a constructor parameter, and then this parameter is assigned.

Duplicate union or intersection type component   New in this release

Reports a duplicate type inside a union or intersection.

Equality operator may cause type coercion   New in this release

Reports a usage of equality operators may cause unexpected type coercions.

Explicit types   New in this release

Reports a type annotation that doesn't match the current code style for explicit types.

Field can be readonly   New in this release

Reports a private field that can be made readonly (for example, if the field is assigned only in the constructor).

Inconsistent tsconfig.json properties   New in this release

Reports inconsistency of a paths, checkJs, or extends property in a tsconfig.json file.

Incorrect generic type argument   New in this release

Reports an invalid type argument in a function, interface, or class declaration.

Missing augmentation import   New in this release

Reports a usage from augmentation module without an explicit import.

Missing global library   New in this release

Reports a TypeScript library file that is required for a symbol but is not listed under the lib compiler option in tsconfig.json.

Missing tsconfig.json option   New in this release

Reports a usage that requires an explicit option in tsconfig.json.

Narrowed type   New in this release

Reports a usage of a variable where the variable type is narrowed by a type guard.

Redundant type arguments   New in this release

Reports a type argument that is equal to the default one and can be removed.

Referenced UMD global variable   New in this release

Reports a usage of a Universal Module Definition (UMD) global variable if the current file is a module (ECMAScript or CommonJS).

Type mismatch   New in this release

Reports a parameter, return value, or assigned expression of incorrect type.

Unresolved JSX component  

Reports an unresolved reference to a JSX component.

Unresolved TypeScript reference   New in this release

Reports an unresolved reference in TypeScript code.

Unresolved imported name   New in this release

Reports an unresolved name or binding in an import declaration in TypeScript code.

Last modified: 11 September 2024