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

[ember/no-side-effects] False-positive with an assignment in a lambda

Open
#1,156 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
263
Forks
214
Avg merge
30m
Merged PRs (30d)
5

Description

```typescript
public get foo(): object {
return {
bar: x => {
this.x = x;
},
};
}
```

This leads to a `ember/no-side-effects` which is wrong.

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.