tslint-consistent-codestyle icon indicating copy to clipboard operation
tslint-consistent-codestyle copied to clipboard

private lambda assigned properties

Open brandonseydel opened this issue 5 years ago • 3 comments

Is there currently a way to specify the naming convention of a instance property that is assigned a function?

example

class Blah {
// need underscore
    private _testVat = 0;
// don't want underscore
    private test = (): void => { };
}

brandonseydel avatar Jan 30 '19 22:01 brandonseydel

Any news on this?

brandonseydel avatar Feb 19 '19 16:02 brandonseydel

Sorry for not answering for so long. This one totally slipped through.

It's currently not possible to configure the requested behavior. Something similar exists for variables that are assigned a function. That option is called functionVariable. However, no such thing exists for properties, yet.

ajafff avatar Feb 19 '19 18:02 ajafff

I may put a PR for this since.

brandonseydel avatar Feb 20 '19 15:02 brandonseydel