Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 445 Bytes

sort-keys.md

File metadata and controls

25 lines (18 loc) · 445 Bytes

sort-keys

The --fix option on the command line automatically fixes problems reported by this rule.

Enforces natural, case-insensitive sorting of Object annotations.

Options

The first option specifies sort order.

  • "asc" (default) - enforce ascending sort order.
  • "desc" - enforce descending sort order.
{
  "rules": {
    "flowtype/sort-keys": [
      2,
      "asc"
    ]
  }
}