tslint-no-circular-imports icon indicating copy to clipboard operation
tslint-no-circular-imports copied to clipboard

Warning about type information

Open valentinbdv opened this issue 6 years ago • 4 comments

Hi,

I really need that package for my project so I am really glad I found it here!

But I have a problem, when I run $ tslint -c tslint.json 'src/**/*.ts' I get this error : Warning: The 'no-circular-imports' rule requires type information.

Here are my versions :

"tslint": "^5.10.0",
"tslint-no-circular-imports": "^0.4.0"

Thanks for the help

valentinbdv avatar Jun 08 '18 15:06 valentinbdv

@valentinbdv from tslint --help:

    -p, --project:
        The path or directory containing a tsconfig.json file that will be
        used to determine which files will be linted. This flag also enables
        rules that require the type checker.

So when running your tslint command, include flag -p <path/to/your/tsconfig.json>, and you should be set.

njgraf512 avatar Jun 14 '18 00:06 njgraf512

Hmm, vscode complains about the same thing ... any way to make it run in vscode ?

tomitrescak avatar Oct 18 '18 05:10 tomitrescak

yeah same here in vscode output The 'no-circular-imports' rule requires type information

yyynnn avatar Dec 22 '18 11:12 yyynnn

@tomitrescak @yyynnn likely due to this issue with vscode-tslint: https://github.com/Microsoft/vscode-tslint/blob/master/tslint/README.md#how-can-i-use-tslint-rules-that-require-type-information

alexburner avatar Dec 28 '18 00:12 alexburner