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
I'd like to have this as well. I don't want to put "local" components into separate files, so restricting this to exported ones would be very convenient.
Activity
betaorbust commentedon Aug 3, 2016
This would be extremely useful. In general, we're trying to guard against what a file exports, not the contents of how it builds that export.
lencioni commentedon Aug 3, 2016
How should such a rule relate to higher-order components?
ljharb commentedon Aug 3, 2016
I'd think that only the HOC itself would be exported, and so this option would work well with HOCs?
ThiefMaster commentedon Mar 26, 2018
I'd like to have this as well. I don't want to put "local" components into separate files, so restricting this to exported ones would be very convenient.
eslint: disable react/no-multi-comp check
eslint: disable react/no-multi-comp check
eslint: disable react/no-multi-comp check
eslint: disable react/no-multi-comp check