-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsafe scopes are forbidden from array's map() function #54
Comments
Yes. This is a bug. The fact that it's |
Yeah, the implementation looks for RxJS functions by matching names only - not return types. So This probably affects other rule implementations, too. Create |
BTW, thanks for opening such details issues. They're really easy to convert into failing tests. Much appreciated. |
The |
@cartant Do we have any updates with |
No. The issue referenced above is still open. |
With rxjs-tslint-rules v4.7.0, and
"rxjs-no-unsafe-scope": true
, I am getting this rather unexpected "Unsafe scopes are forbidden".Funny thing is, this whole chunk is NOT about observables.. just normal array
map()
so I would expect the rules to not take effect.I only happens when the variable was destructured from parameter (e.g.
notOk_mapAnArrayFromParam()
). It is ok when used inok_mapAnArray()
.Maybe a bug?
The text was updated successfully, but these errors were encountered: