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
Although it has uncommon usages, it would be nice to have a no-named-export rule to enforce export default only.
This may be useful, for example, when defining that a component file may not expose its helpers, giving this file a single purpose, forcing helpers to be put in a proper file/layer with specific rules and behaviors; and organizing those module exports in an index file.
Although it has uncommon usages, it would be nice to have a
no-named-export
rule to enforce export default only.This may be useful, for example, when defining that a component file may not expose its helpers, giving this file a single purpose, forcing helpers to be put in a proper file/layer with specific rules and behaviors; and organizing those module exports in an index file.
In a practical example:
The text was updated successfully, but these errors were encountered: