TSLint: Config file was not found.

How to enable TSLint? Now it gives the below error message:

TSLink configuration dialog shows that it is enabled and configured according to instructions in https://www.jetbrains.com/help/webstorm/tslint.html.

I noticed this problem after updating to the latest version of Webstrom.

 

1

The error indicates that tslint.json can't be found. If you have TSLint configuration file in your project, please specify it explicitly using 'Configuration file' option

0

In Webstorm, do you have any default or example tsling.json file containing basic or recommended things? Inventing it from scratch is not so easy.

0

Sure we don't. You can search for examples on the web - read the official documentation, for example: https://palantir.github.io/tslint/usage/configuration/

0
Avatar
Permanently deleted user

As mentioned in the docs (https://www.jetbrains.com/help/webstorm/tslint.html), "If no tslint.json file is found, TSLint uses its default embedded configuration file." This was working fine thru version 2017.1, but broke starting with 2017.2. Now, if there is no tslint.json file found in the current project, Webstorm just throws an error, as shown by the red bar in Mikko's screenshot.

0

Well, in previous release, indeed, no errors are shown, but no linting is performed, as far as I can see... Neither it works in command line - tslint reports `No valid rules have been specified`.

TSLint delivery doesn't include any embedded configuration files. You can, however, easily generate a basic tslint.json using `tslint --init`

0

请先登录再写评论。