enhancementhelp wantedimport/export ordering
Repository metrics
- Stars
- (4,946 stars)
- PR merge metrics
- (Avg merge 138d 22h) (3 merged PRs in 30d)
Description
Surprisingly do not see an existing issue for this, but I would like to have an equivalent of order with alphabetize for exports.
This would esp. useful for files that only contain exports, e.g.
// @flow
export {
default as createLogDump,
} from './createLogDump';
export {
default as createSnackTimeEvent,
} from './createSnackTimeEvent';
export {
default as executeMaintenanceTask,
} from './executeMaintenanceTask';
export {
default as inviteSlackTeamUsersToSnackClubChannel,
} from './inviteSlackTeamUsersToSnackClubChannel';
export {
default as pairSnackTimeEventParticipants,
} from './pairSnackTimeEventParticipants';
At the moment, these exports are in a random order.
Enforcing export order when file only contains exports would be useful.