Weird TSLint errors

Hello! I've got weird TSLint errors in my Angular component files. Here's some screenshots:

Error is the same, but it's appearing in random places. I've tried to restart WebStorm and to delete .idea folder, nothing helped.

0
4 comments

Looks as if these are angular-specific rules; not sure why ther are shown in .ts files.

Try running tslint in terminal - what files/line numbers appear in error messages?

Can you share a sample project I can use to recreate the issue?

0

I don't know how to configure tslint since it's an Angular, but if I run `ng lint` I see no errors like this.

I can't share the project, because this issue persist on only one project, in other project I don't see it. If I create a new project everything works fine.

0

>I don't know how to configure tslint since it's an Angular, but if I run `ng lint` I see no errors like this.

 

you can run tslint -p path/to/source/folder

>because this issue persist on only one project, in other project I don't see it.

that's why I was asking for the project - as I have been unable to recreate the issue in Angular projects I've tried, and I have no idea what's wrong

 

0

can you provide your tslint.json and package.json files? All tsconfig*.json files from the folder where the .ts files errors are reported for reside would be also helpful

0

Please sign in to leave a comment.