Skip to main content

js/useSortedSpecifiers

MISSING DOCUMENTATION

Examples

Invalid

import {b, a, c, D} from 'mod';

 file.ts:1 lint/js/useSortedSpecifiers  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━

  The specifiers of the import declaration should be sorted
    alphabetically.

    import {b, a, c, D} from 'mod';
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  Safe fix

  - import·{b,·a,·c,·D}·from·"mod";
  + import·{D,·a,·b,·c}·from·"mod";


import {b as A, a as C, B} from 'mod';

 file.ts:1 lint/js/useSortedSpecifiers  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━

  The specifiers of the import declaration should be sorted
    alphabetically.

    import {b as A, a as C, B} from 'mod';
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  Safe fix

  - import·{b·as·A,·a·as·C,·B}·from·"mod";
  + import·{b·as·A,·B,·a·as·C}·from·"mod";


import {c, b as b2, b as b1, b} from 'mod';

 file.ts:1 lint/js/useSortedSpecifiers  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━

  The specifiers of the import declaration should be sorted
    alphabetically.

    import {c, b as b2, b as b1, b} from 'mod';
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  Safe fix

  - import·{c,·b·as·b2,·b·as·b1,·b}·from·"mod";
  + import·{b,·b·as·b1,·b·as·b2,·c}·from·"mod";


export {b, a, c, D} from 'mod';

 file.ts:1 lint/js/useSortedSpecifiers  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━

  The specifiers of the export declaration should be sorted
    alphabetically.

    export {b, a, c, D} from 'mod';
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  Safe fix

  - export·{b,·a,·c,·D}·from·"mod";
  + export·{D,·a,·b,·c}·from·"mod";


export {b as A, a as C, B} from 'mod';

 file.ts:1 lint/js/useSortedSpecifiers  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━

  The specifiers of the export declaration should be sorted
    alphabetically.

    export {b as A, a as C, B} from 'mod';
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  Safe fix

  - export·{b·as·A,·a·as·C,·B}·from·"mod";
  + export·{B,·a·as·C,·b·as·A}·from·"mod";


export {c, b as b2, b as b1, b} from 'mod';

 file.ts:1 lint/js/useSortedSpecifiers  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━

  The specifiers of the export declaration should be sorted
    alphabetically.

    export {c, b as b2, b as b1, b} from 'mod';
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  Safe fix

  - export·{c,·b·as·b2,·b·as·b1,·b}·from·"mod";
  + export·{b,·b·as·b1,·b·as·b2,·c}·from·"mod";


export {b, a, c, D};

 file.ts:1 lint/js/useSortedSpecifiers  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━

  The specifiers of the export declaration should be sorted
    alphabetically.

    export {b, a, c, D};
    ^^^^^^^^^^^^^^^^^^^^

  Safe fix

  - export·{b,·a,·c,·D};
  + export·{D,·a,·b,·c};


export {b as A, a as C, B};

 file.ts:1 lint/js/useSortedSpecifiers  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━

  The specifiers of the export declaration should be sorted
    alphabetically.

    export {b as A, a as C, B};
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^

  Safe fix

  - export·{b·as·A,·a·as·C,·B};
  + export·{B,·a·as·C,·b·as·A};


export {c, b as b2, b as b1, b};

 file.ts:1 lint/js/useSortedSpecifiers  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━

  The specifiers of the export declaration should be sorted
    alphabetically.

    export {c, b as b2, b as b1, b};
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  Safe fix

  - export·{c,·b·as·b2,·b·as·b1,·b};
  + export·{b,·b·as·b1,·b·as·b2,·c};