This rule enforces (and autofixes) that destructured names in import
statements are sorted.
Examples of incorrect code for this rule:
import {xyz, abc} from 'other';
import main, {second as alias, first as nickname} from 'something';
Examples of correct code for this rule:
import {abc, xyz} from 'other';
import main, {first as nickname, second as alias} from 'something';
Note how the sorting is based on the name of the imported export (eg. first
, second
) and not the local name (eg. nickname
, alias
).