Closed as not planned
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
// No error occurs for this, expected an error:
export async function tryTryAgain() {
await Promise.resolve(); // should be an error and fix to return await Promise.resolve("value")
}
ESLint Config
module.exports = {
parser: "@typescript-eslint/parser",
rules: {
"no-return-await": "off",
"require-await": "off",
"@typescript-eslint/require-await": "error",
"@typescript-eslint/return-await": ["error", "always"],
},
};
tsconfig
Expected Result
Expected an error
Actual Result
No error, no autofix to return await
Additional Info
I do get an error and fix if I put only return Promise.resolve("value")
.