Ember.get with nested properties: best practices

I just upgraded one of my applications using the instructions found here. I use the pattern

this.get("someService.propertyHolder.someProperty")

frequently, so I was somewhat surprised when node_modules/.bin/eslint --fix . converted it to

get(get(get(this, 'someService'), 'propertyHolder'), 'someProperty')

which honestly looks and feels like garbage. Any thoughts on best practices for nested properties? One option is to always use computed aliases for nested properties, but that also feels somewhat bad.

get(this, "someService.propertyHolder.someProperty") is readable and idiomatic. There might be some good reason eslint sliced it that way but I don’t see it

1 Like

possibly just to drive you crazy? :laughing: