Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 344 Bytes

sort-import-declaration-specifiers.md

File metadata and controls

25 lines (18 loc) · 344 Bytes

sort-import-declaration-specifiers

This rule ensures import declaration specifiers are always sorted alphabetically.

ESLint Configuration

{
  "rules": {
    "ocd/sort-import-declaration-specifiers": 2
  }
}

Valid

import {describe, it} from 'mocha'

Invalid

import {it, describe} from 'mocha'