-
Notifications
You must be signed in to change notification settings - Fork 887
Error: no-for-in-array requires type checking #1445
Comments
|
This is ugly and must be public |
Well, it's not a documented API... how did you discover it? We reserve the right to experiment with APIs in our project before committing to them... |
Reading code of sample configurations, and reading code is the best documentation in most javascript projects. Developers update documentation very slow, released features may be documented after long time, some projects does not provide documentation about Node API use totally prefer to offer only CLI use, that is ugly. |
Many build tools plugins use Node.JS api, and it's functionality must not differ from CLI, because CLI does not provide ability to control process of output etc. |
Sure, that's partially true -- that's why I pointed out src/test.ts in my comment above. I agree that the Node.js API is useful and should be documented. We do have documentation for parts that are well-supported, including type checking, right here in the README. Also, being a typescript project, we naturally have documentation in the form of typings declaration files published in the NPM package. Sure, the GH pages site is a little behind compared to the README -- we're working on improving that. But I might suggest a slightly different tone for your form of contribution here -- you will probably experience more success by, say, sending a documentation PR before calling a project "ugly". |
The GH pages site is now updated with the latest rule metadata from the most recent release. (I realize this is a little tangential to the issue at hand though.) Currently, |
Just ran into that error after attempting to enable As a side note, is there documentation on enabling it for the Gulp runner? |
Not sure with regards to the Gulp runner. We need to update the docs site to make it more clear which rules require typechecking and what that means |
Can u plz tell me how would I deal with this issue on an IDE like webstorm? |
Could you plz make linterOptions typecheck public or something? |
Actually, I think making type checking a rule would be more useful and accessible. |
Any updates? |
@StevenTheEVILZ just disable the rule in your |
@adidahiya I've already fixed the problem by using the tslint js lib. BTW they are using the cli and capturing its output. |
@adidahiya What is the point that you do not make this API public? |
I'm using |
As of #3322, typeCheck has been deprecated. Closing this issue for housekeeping. |
Bug Report
3.14.0
2.0.0
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Error: no-for-in-array requires type checking
at Rule.TypedRule.apply (...\node_modules\tslint\lib\language\rule\typedRule.js:14:15)
at Linter.lint (...\node_modules\tslint\lib\tslint.js:65:37)
...
Expected behavior
No errors
The text was updated successfully, but these errors were encountered: