Skip to content

remove or make smarter the member ordering rule #55

Open
roll314 opened this issue Nov 7, 2018 · 0 comments
Open

remove or make smarter the member ordering rule #55

roll314 opened this issue Nov 7, 2018 · 0 comments
Assignees

Comments

@roll314
Copy link

roll314 commented Nov 7, 2018

example for Mosaic library from checkbox and related (input, textarea etc)

private uniqueId: string = `mc-checkbox-${++nextUniqueId}`;

@Input() id: string = this.uniqueId;

// ...some inputs bellow`

In that case we must put id under uniqueId due to else we'd get ts error "assess to not initialised variable".
I believe it is useful rule but some edge cases should be considered.
It'd be ideal to somehow analyse using field in cases like these.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants