Rule typecheck-object
is wrongly failed for simple comparing with 'object'
#509
Labels
typecheck-object
is wrongly failed for simple comparing with 'object'
#509
Rule
typecheck-object
is wrongly failed for simple comparing with 'object' stringSame issue with other
typecheck-*
rulesI have opened the same issue some time ago but looks like it was wrongly interpreted.
As for me, tests added in commit shouldn't show errors.
I think it is no sense to show error when
typeof
is not used before the variable name. In the project where I work, we have our own business "types" which are described by some object's property. And because of this rule we need put /eslint angular/typecheck-object: 0/ in a lot of placesOr at least there should be an option to disable such restrict check of type.
The text was updated successfully, but these errors were encountered: