IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Linting TypeScript

Last modified: 10 August 2022

Required plugin: JavaScript and TypeScript, TSLint

The plugins are available only in IntelliJ IDEA Ultimate, where they are enabled by default.

You can use the TSLint code verification tool from inside IntelliJ IDEA and check your TypeScript code for most common mistakes without running the application. When the tool is activated, it lints all the opened TypeScript files and marks the detected problems.

To view the description of a problem, hover over the highlighted code. By default, IntelliJ IDEA marks detected problems based on the severity levels from the TSLint configuration file. See Configuring TSLint highlighting to learn how to override these settings.

TSLint: errors and warnings are highlighted, the description of a problem is shown in a tooltip.

You can also check your TypeScript code with ESLint, see Lint TypeScript with ESLint.