Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 397 Bytes

sort-variable-declarator-properties.md

File metadata and controls

27 lines (20 loc) · 397 Bytes

sort-variable-declarator-properties

This rule ensures variable declarator properties are always sorted alphabetically.

ESLint Configuration

{
  "rules": {
    "ocd/sort-variable-declarator-properties": 2
  }
}

Valid

import Ember from 'ember'
const {Component, Logger} = Ember

Invalid

import Ember from 'ember'
const {Logger, Component} = Ember