ronparkdev / eslint-plugin-sort-annotation

Lint rule for sort the value or properties if it has @sort or @sort-keys annotation
13 stars 2 forks source link

Support @sort annotation for MemberExpression #2

Closed ronparkdev closed 2 years ago

ronparkdev commented 2 years ago

@sort for MemberExpression

AS-IS

export const keys = [
  Type.B,
  Type.A,
]

TO-BE

// @sort
export const keys = [
  Type.A,
  Type.B,
]
ronparkdev commented 2 years ago

Applied this feature in v1.0.3