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 Aug 4, 2020. It is now read-only.
Flow allows for explicit function declarations. I guess they’re mostly intended for separate declaration files, but I also find them very useful for documenting functions with more than one parameter format. Often, this seems to happen when a function with positional parameters gets too complex and is modified to an options object, but remains compatible with the old params to minimise disruption.
This makes Flow happy and keeps type checking working, but it results in lots and lots of eslint warnings from no-redeclare.
Based on similar issues, it seems to me that this is the right project to raise this issue—if not, please let me know. It would be marvellous if eslint could simply ignore explicit declare statements for the purposes of the no-redeclare rule. Presumably, the point of no-redeclare is to avoid overriding actual runtime bindings.
The text was updated successfully, but these errors were encountered:
Flow allows for explicit function declarations. I guess they’re mostly intended for separate declaration files, but I also find them very useful for documenting functions with more than one parameter format. Often, this seems to happen when a function with positional parameters gets too complex and is modified to an options object, but remains compatible with the old params to minimise disruption.
This makes Flow happy and keeps type checking working, but it results in lots and lots of eslint warnings from
no-redeclare
.Based on similar issues, it seems to me that this is the right project to raise this issue—if not, please let me know. It would be marvellous if
eslint
could simply ignore explicitdeclare
statements for the purposes of theno-redeclare
rule. Presumably, the point ofno-redeclare
is to avoid overriding actual runtime bindings.The text was updated successfully, but these errors were encountered: