Skip to content

order exports #1888

@gajus

Description

@gajus

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions