5 comments
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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

Please sign in to leave a comment.