You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
adidahiya
changed the title
New rule option for variable-name rule to disallow identifiers which are also valid types in the scope
New option for variable-name rule to disallow identifiers which are also valid types in the scope
Oct 9, 2015
Can I have an intermediate fix? For angular it would work to disallow untyped parameters in function types altogether.
I tried adding "typedef": [true, "parameter"], to our tslint config https://github.com/angular/angular/blob/6abed8d996168f695e638c0c2d0fde1ad7ae273c/gulpfile.js#L294
but I get pages of errors, because it covers function declarations as well as function type expressions.
Note: per #4534, this issue will be closed in less than a month if no PR is sent to add the rule. If you really need the rule, custom rules are always an option and can be maintained outside this repo!
Suggested by @alexeagle here: microsoft/TypeScript#5187
Currently blocked on #680; we need the whole program's type information to be able to do this check.
The text was updated successfully, but these errors were encountered: