Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

enable type checking #67

Closed
adubois-stingray opened this issue Feb 13, 2017 · 3 comments
Closed

enable type checking #67

adubois-stingray opened this issue Feb 13, 2017 · 3 comments

Comments

@adubois-stingray
Copy link

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 ?

@parasoft-sang
Copy link

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

@weekens
Copy link

weekens commented Oct 4, 2017

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

@occasl
Copy link

occasl commented Nov 16, 2017

I see this same issue with this rule:

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants