You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add missing tests
This adds two failing tests to highlight bugs and a passing but
previously missing test.
The missing test added is for calling `set` which was destructured from
`import Ember from 'ember'`
One failing test is to handle the case where `Ember.computed` is called
from an import that isn't named `Ember`, eg
```
import E from 'ember';
E.computed()
```
Another failing test illustrates that ember import bindings are
clobbered if followed by any other default import, as in:
```
import Ember from 'ember';
import AnythingElse from 'anywhere';
```
* Clean up no-side-effect-cp rule.
Fixes a number of the errors previously identified, as well as a few
additional ones (tests added in this commit).
constMESSAGE='Do not send events or actions in Computed Properties. This will cause data flow issues in the application, where the accessing of a property causes some side-effect. You should only send actions on behalf of user initiated events. Please see the following guide for more information: https://github.com/ember-best-practices/eslint-plugin-ember-best-practices/blob/master/guides/rules/no-side-effect-cp.md';
0 commit comments