infctr/eslint-plugin-typescript-sort-keys

string-enum ignores comments

havenchyk opened this issue · 6 comments

I noticed that string-enum rule ignores comments, so if you have comments on the right like

enum Events {
  MyEvent2 = 'My Event 2' // my event 2
  MyEvent1 = 'My Event 1' // my event 1

will become

enum Events {
  MyEvent1 = 'My Event 1' // my event 2
  MyEvent2 = 'My Event 2' // my event 1

which is wrong

Do you want to accept a PR for it?

@havenchyk
Will appreciate a PR

I'm noticing the same thing with function props, is the PR in place?