ember-cli / ember-cli/eslint-plugin-ember

New Rule: no-computed-without-dependent-keys

Open
#282 5 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue New Rule
Dominant language
JavaScript
Stars
263
Forks
214
Avg merge
30m
Merged PRs (30d)
5

Description

The proposed rule should warn about computed properties without any dependent keys:
```js
foo: computed(function() {
return 42;
})
```

instead the property should be initialized in the constructor:
```js
init() {
this._super(...arguments);
this.set('foo', 42);
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.