bryanrsmith / eslint-plugin-sort-class-members

An ESLint rule for enforcing consistent ES6 class member order
119 stars 21 forks source link

Private members support #73

Closed digaev closed 2 years ago

digaev commented 2 years ago

Another attempt to add support for JavaScript private members. Basically, it just adds a hash # to the name of private members so we can define custom rules for any kind of private members (anything that is prefixed with #).

bryanrsmith commented 2 years ago

Interesting approach! I had imagined this being supported via a property, similar to static: true, but I have no objection to this.

bryanrsmith commented 2 years ago

Published in eslint-plugin-sort-class-members@1.13.0 Thanks!

digaev commented 2 years ago

Thank you! But yeah, a property would be nice.