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

Linting TypeScript

Last modified: 26 July 2022

Required plugin: JavaScript and TypeScript, TSLint

The plugins are bundled with PhpStorm and enabled by default.

You can use the TSLint code verification tool from inside PhpStorm 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, PhpStorm 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.