# no-await-in-promise-methods 📝 Disallow using `await` in `Promise` method parameters. 💼 This rule is enabled in the following [configs](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config): ✅ `recommended`, ☑️ `unopinionated`. 💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions). Using `await` on promises passed as arguments to `Promise.all()`, `Promise.allSettled()`, `Promise.any()`, or `Promise.race()` is likely a mistake. ## Examples ```js // ❌ Promise.all([await promise, anotherPromise]); // ✅ Promise.all([promise, anotherPromise]); ``` ```js // ❌ Promise.allSettled([await promise, anotherPromise]); // ✅ Promise.allSettled([promise, anotherPromise]); ``` ```js // ❌ Promise.any([await promise, anotherPromise]); // ✅ Promise.any([promise, anotherPromise]); ``` ```js // ❌ Promise.race([await promise, anotherPromise]); // ✅ Promise.race([promise, anotherPromise]); ```