eslint-plugin-ember
eslint-plugin-ember copied to clipboard
`no-deeply-nested-dependent-keys-with-each` rule should apply to computed macros that return an @each
filingRequestsUS: filterBy('filingRequests', 'data.country', 'US'),
// throws the runtime warning:
// WARNING: Dependent keys containing @each only work one level deep.
// You used the key "[email protected]" which is invalid.
// Please create an intermediary computed property.
This throws a warning, but the lint rule does not catch it.
reduce_computed_macros that return an @each should trigger the lint rule as well.
https://github.com/emberjs/ember.js/blob/23bf7e97502b0f9bab0e90914f4c944dcb7b0975/packages/ember-runtime/lib/computed/reduce_computed_macros.js#L397
As far as I can tell, this is just filterBy
and mapBy
Came here to file this. @bmish is there any plan to address this?
Will need a volunteer to address it.