Dependent key can't end with @each
(must be []
). []
can't be used in the middle of the dependent key (must be at the end). Dot must be before []
.
{
"plugins": [
"ember-cleanup"
],
"rules": {
"ember-cleanup/square-brackets": 2
}
}
Component.extend({
prop: computed('a.[]', function () {
// ...
})
});
Component.extend({
prop1: computed('a.@each', function () {}),
prop2: computed('a.[].b', function () {}),
prop3: computed('a[]', function () {})
});