RubyMine 2017.2 Help

TSLint

File | Settings | Languages and Frameworks | TypeScript | TSLint for Windows and Linux
RubyMine | Preferences | Languages and Frameworks | TypeScript | TSLint for macOS
Ctrl+Alt+S
/help/img/idea/2017.2/settings.png


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

ItemDescription
Enable Select this check box to have TSLint applied to verify the code 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. Choose one of the configured interpreters or click browseButton.png and configure a new one as described in Configuring Node.js Interpreters.

If you have appointed one of the installations as default, the field displays the path to its executable file.

TSLint Package In this field, specify the location of the tslint package installed globally or in the current project, see Using TSLint Code Quality Tool.
Configuration File In this area, appoint the configuration to use. By default, RubyMine first looks for a tslint.json configuration file. RubyMine 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 file is found, TSLint uses its default embedded configuration file. Accordingly, you have to define the configuration to apply either in a tslint.json configuration file, or in a custom JSON configuration file, or rely on the default embedded configuration.
  • To have RubyMine look for a tslint.json file, choose the Search for tslint.json option. If no tslint.json file is found, the default embedded configuration file will be used.
  • To use a custom file, choose the Configuration File option and specify the location fo the file in the Path field. Choose the path from the drop-down list, or type it manually, or click the /help/img/idea/2017.2/browseButton.png button 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 or the above specified custom configuration file and accordingly will override them.
Last modified: 26 October 2017

See Also