eslint-plugin-unicorn
eslint-plugin-unicorn copied to clipboard
`no-single-promise-in-promise-methods`: Provide autofix for `const [foo] = await Promise.all([promise])`
Description
In #2386 we are removing autofix and suggestions from Promise.all() since it returns an array, but we can add autofix for
const [foo] = await Promise.all([promise]);
[foo] = await Promise.all([promise]);
const foo = (await Promise.all([promise]))[0];
Accepted