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 Apr 29, 2022. It is now read-only.
The following code currently gets flagged by variable-name:
constApp=()=><div>Hello world!</div>;
The style guide discourages the use of name inference (here and here), so that kind of makes the example above (the notation I personally prefer) invalid, but not this one:
Right, it never registered in my mind that this config is JS-only. At least currently. I'll close this then, since this is, indeed, a React-/JSX-specific problem.
The following code currently gets flagged by
variable-name
:The style guide discourages the use of name inference (here and here), so that kind of makes the example above (the notation I personally prefer) invalid, but not this one:
I think the rule should be changed to this:
A pure-component-specific exception would be nicer, of course, but, AFAIK, it doesn't exist.
The text was updated successfully, but these errors were encountered: