Currently there are no rules that cover methods used with private, public keywords in TS. I'd like the feature to sort public methods before private methods without having to use underscore as a prefix for private names.
I'm proposing a rule that looks at the keyword used to order properties and methods in a class.
class Foo {
public bar = 'Im a public string';
baz = 'Im also a public string';
private foobar = 'Im a private string';
someMethod() { //public }
public somePublicMethod() { //public }
private somePrivateMethod() { //private }
}
Currently there are no rules that cover methods used with
private, public
keywords in TS. I'd like the feature to sort public methods before private methods without having to use underscore as a prefix for private names.I'm proposing a rule that looks at the keyword used to order properties and methods in a class.
This should pass with the order