JetBrains Rider 2018.2 Help

TSLint

File | Settings | Languages and Frameworks | TypeScript | TSLint for Windows and Linux
JetBrains Rider | Preferences | Languages and Frameworks | TypeScript | TSLint for macOS
Ctrl+Alt+S icons general settings svg


Use this page to activate integration with the TSLint code verifier and configure its behaviour.

Item

Description

Enable

Select this checkbox to activate TSLint in the current project. After that the other controls in the page are enabled.

Node Interpreter

In this field, specify the Node.js interpreter to use. This can be a local Node.js interpreter or a Node.js on Windows Subsystem for Linux.

TSLint Package

In this field, specify the location of the tslint package installed globally or in the current project, see TSLint.

Configuration File

In this area, appoint the configuration to use. By default, JetBrains Rider first looks for a tslint.json, tslint.yaml, or tslint.yml configuration file. JetBrains Rider starts the search from the folder where the file to be checked is stored, then searches in the parent folder, and so on until reaches the project root. If no tslint.json, tslint.yaml, or tslint.yml configuration file is found, TSLint uses its default embedded configuration file. Accordingly, you have to define the configuration to apply either in a tslint.json, tslint.yaml, or tslint.yml configuration file, or in a custom configuration file, or rely on the default embedded configuration.
  • To have JetBrains Rider look for a tslint.json, tslint.yaml, or tslint.yml file, choose the Automatic search option.

  • To use a custom file, choose the Configuration File option and specify the location of the file in the Path field. Choose the path from the drop-down list, or type it manually, or click Browse and select the relevant file from the dialog box that opens.

Additional Rules Directory

In this field, specify the location of the files with additional code verification rules. These rules will be applied after the rules from tslint.json, tslint.yaml, tslint.yml, or from the above specified custom configuration file and accordingly will override them.

Last modified: 21 December 2018

See Also