'Eslint enforce alphabetical export order for module

I'd like to enforce alphabetical ordering of exports within a .ts file with an eslint rule in order to keep my project organized. Does such a rule exist?

So if I had three exports a, c, b, like this, where the exports are not in alphabetical order:

export const a = "A"
export const c = "C"
export const b = "B"

Eslint would warn me that the correct order is:

export const a = "A"
export const b = "B"
export const c = "C"


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source