Enforce statements in this order
Originally posted by @fisker in #990 (comment)
Can you open a separate issue for the class member order rule idea? Similar rule for TS: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-ordering.md
Originally posted by @sindresorhus in #990 (comment)
Rule name class-body-order
is the original idea, I'm open to better suggestions.
Cases not in order as example in Pass
.
class Unicorn {
#privateField = 1;
publicField= 1;
static staticField = 1;
constructor() {}
#privateMethod() {}
publicMethod() {}
static staticMethod() {}
static {
// static block
}
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too