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
It is a bit too opinionated. We only enable lint rules that often result in errors because we show lint warnings “in your face”. Beginners who copy and paste React snippets from StackOverflow and blogs shouldn’t get 50 warnings lecturing them about var because they’re just trying to learn React at this point.
We will likely re-evaluate this decision some time down the road, but now is too early in my opinion. Even our own docs use var in many places.
Just wondering, any particular reason why this rule is not enabled? I thought this is seen as good practice nowadays:
http://eslint.org/docs/rules/no-var
The text was updated successfully, but these errors were encountered: