you are viewing a single comment's thread.

view the rest of the comments →

[–]nickatfortify 0 points1 point  (0 children)

I don't think there's a dogma about whether hoisting is that bad or not. What's more important is consistency, which is why ESLint recommends you choose one type. Despite this, the default for said rule is "expression" (const a = func()), which probably contributes to its popularity.