ember-cli / ember-cli/eslint-plugin-ember
New Rule: no-async-actions
Open
enhancement
New Rule
- Dominant language
- JavaScript
- Stars
- 263
- Forks
- 214
- Avg merge
- 30m
- Merged PRs (30d)
- 5
Description
see http://ember-concurrency.com/docs/tutorial (scroll down to Version 4)
**Bad:**
```js
actions: {
async handleClick() {
// ...
}
}
```
```js
actions: {
handleClick() {
return something.then(() => { /* ... */ });
}
}
```
```js
@action
async handleClick() {
// ...
}
```
```js
@action
handleClick() {
return something.then(() => { /* ... */ });
}
```
**Good:**
```js
actions: {
handleClick() {
return nothingOrSomethingThatIsNotAPromise;
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.