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
The issue here is that the syntax highlighter doesn't really know which sub-function you're in - it is only aware of top-level functions and events since those can be quickly detected with a regular expression while nested functions require parsing the file structure - potentially very often.
Enabling "treat local variables as block-scoped" (or using const/let) will make the linter warnings go away, but syntax highlighter will still have a hard time figuring out which of 3 variables it is supposed to be dealing with. Using descriptive variable names helps.
Expected no warnings here:
The text was updated successfully, but these errors were encountered: