The TypeScript plugin analyzes your codebase using the TypeScript compiler to identify potential issues and enforce best practices.
The plugin manages issues through structured audits and groups. Each audit targets a specific type of error, ensuring comprehensive analysis.
Audit | Slug |
---|---|
Semantic Errors | semantic-errors |
Syntax Errors | syntax-errors |
Configuration Errors | configuration-errors |
Declaration and Language Service Errors | declaration-and-language-service-errors |
Internal Errors | internal-errors |
No Implicit Any Errors | no-implicit-any-errors |
Unknown Codes | unknown-codes |
Errors that occur during type checking and type inference.
- Slug:
semantic-errors
- Title: Semantic Errors
- Description: Errors that occur during type checking and type inference.
- Scoring: The score is based on the number of issues found.
- Value: The value is the number of issues found.
- Display Value: The display value is the number of issues found.
Severity | Message | Source file | Line(s) |
---|---|---|---|
🚨 error | TS2307: Cannot find module './non-existent' or its corresponding type declarations. | path/to/module-resolution.ts |
2 |
🚨 error | TS2349: This expression is not callable. Type 'Number' has no call signatures. |
path/to/strict-function-types.ts |
3 |
🚨 error | TS2304: Cannot find name 'NonExistentType'. | path/to/cannot-find-module.ts |
1 |
Errors that occur during parsing and lexing of TypeScript source code.
- Slug:
syntax-errors
- Title: Syntax Errors
- Description: Errors that occur during parsing and lexing of TypeScript source code.
- Scoring: The score is based on the number of issues found.
- Value: The value is the number of issues found.
- Display Value: The display value is the number of issues found.
Severity | Message | Source file | Line(s) |
---|---|---|---|
🚨 error | TS1136: Property assignment expected. | path/to/syntax-error.ts |
1 |
Errors that occur when parsing TypeScript configuration files.
- Slug:
configuration-errors
- Title: Configuration Errors
- Description: Errors that occur when parsing TypeScript configuration files.
- Scoring: The score is based on the number of issues found.
- Value: The value is the number of issues found.
- Display Value: The display value is the number of issues found.
Severity | Message | Source file | Line(s) |
---|---|---|---|
🚨 error | TS5023: Unknown compiler option 'invalid'. | path/to/tsconfig.json |
1 |
Errors that occur during TypeScript language service operations.
- Slug:
declaration-and-language-service-errors
- Title: Declaration and Language Service Errors
- Description: Errors that occur during TypeScript language service operations.
- Scoring: The score is based on the number of issues found.
- Value: The value is the number of issues found.
- Display Value: The display value is the number of issues found.
Severity | Message | Source file | Line(s) |
---|---|---|---|
🚨 error | TS4112: This member cannot have an 'override' modifier because its containing class 'Standalone' does not extend another class. | path/to/incorrect-modifier.ts |
2 |
Errors that occur during TypeScript internal operations.
- Slug:
internal-errors
- Title: Internal Errors
- Description: Errors that occur during TypeScript internal operations.
- Scoring: The score is based on the number of issues found.
- Value: The value is the number of issues found.
- Display Value: The display value is the number of issues found.
Severity | Message | Source file | Line(s) |
---|---|---|---|
🚨 error | TS9001: Internal compiler error. | path/to/internal-error.ts |
4 |
Errors related to no implicit any compiler option.
- Slug:
no-implicit-any-errors
- Title: No Implicit Any Errors
- Description: Errors related to no implicit any compiler option.
- Scoring: The score is based on the number of issues found.
- Value: The value is the number of issues found.
- Display Value: The display value is the number of issues found.
Severity | Message | Source file | Line(s) |
---|---|---|---|
🚨 error | TS7006: Parameter 'x' implicitly has an 'any' type. | path/to/implicit-any.ts |
5 |
Errors that do not match any known TypeScript error code.
- Slug:
unknown-codes
- Title: Unknown Codes
- Description: Errors that do not match any known TypeScript error code.
- Scoring: The score is based on the number of issues found.
- Value: The value is the number of issues found.
- Display Value: The display value is the number of issues found.
Severity | Message | Source file | Line(s) |
---|---|---|---|
🚨 error | TS9999: Unknown error code encountered. | path/to/unknown-error.ts |
6 |
Group | Slug |
---|---|
Problems | problems |
Configuration | ts-configuration |
Miscellaneous | miscellaneous |
- Description: Syntax, semantic, and internal compiler errors are critical for identifying and preventing bugs.
- References:
- Syntax Errors (
syntax-errors
) - Semantic Errors (
semantic-errors
) - No Implicit Any Errors (
no-implicit-any-errors
)
- Syntax Errors (
- Description: Ensures correct TypeScript project setup, minimizing risks from misconfiguration.
- References:
- Configuration Errors (
configuration-errors
)
- Configuration Errors (
- Description: Informational errors that may not impact development directly but are helpful for deeper insights.
- References:
- Unknown Codes (
unknown-codes
) - Internal Errors (
internal-errors
) - Declaration and Language Service Errors (
declaration-and-language-service-errors
)
- Unknown Codes (