palantir/grunt-tslint

enable type checking

Closed this issue · 3 comments

When I want to enable rule like:
no-boolean-literal-compare
no-floating-promises
no-for-in-array
no-unsafe-any
no-void-expression

I get an error :
Warning: no-boolean-literal-compare requires type checking� Use --force to continue.

I found that we need to enable type checking to support theses rules:

https://github.com/palantir/tslint#type-checking
--project tsconfig.json file
--type-check enable type checking when linting a project

I didn't find any way to do it with grunt-tslint, could you please add an option in gruntfile to support this ?

i have same issue currently using grunt-tslint 4.0.0 with tslint 4.4.2 together. could you add this to the option?

Hey guys! What's the status here? Can I help with this one?

I see this same issue with this rule:

Running "tslint:files" (tslint) task
Warning: The 'no-use-before-declare' rule requires type information.