Synchronization with TsLint (TypeScript)

TsLint is a parser for TypeScript code. You may use TsLint in embedded mode or else pass your TsLint reports along to Themis.

Embedded analysis in Themis

To delegate to Themis the analysis of your TypeScript code to TsLint, you should configure first the embedded linters mode for your source. You have to then add a sub-plugin for TsLint.

Themis uses the configuration by default of TsLint in a file at the JavaScript format. You have the possibility to edit the content of this file at any one time. You may consult the official documentation to assist you in configuring TsLint. Here is the default configuration file :

  "defaultSeverity": "warning",
  "extends": [
  "jsRules": {},
  "rules": {},
  "rulesDirectory": []

In the case where you have already a configuration file present on your source code repository, you may indicate to Themis to use this configuration. To this end, you have to specify the combination of 2 following parameters :

  • Use a configuration file present on your repository (true/false): Indicate true to use your configuration file.
  • Relative path of the configuration file on your repository: Indicate here the the relative way on your source code repository of the configuration file. Example: src/tslint.json.

If you activate the use of our own configuration file, the "Configuration file" parameter is not taken into account in the analysis. It does not reflect also in no way the content of the configuration file present on your source code repository. 

Informations and installed versions


Extensions of analyzed files: .ts, .tsx.

Version of Themis Version of TsLint




Was this article helpful?
0 out of 0 found this helpful



Please sign in to leave a comment.