Closed
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
class TestClass implements AsyncDisposable {
test: string;
constructor() {
this.test = "hello world";
}
async [Symbol.asyncDispose](): Promise<void> {
// Just some await
await new Promise((resolve) => setTimeout(resolve, 10));
}
}
const fn = async () => {
// Async arrow function 'fn' has no 'await' expression.
// Even with await using
await using test = new TestClass();
// Comment me out to see the error go away
//await new Promise((resolve) => setTimeout(resolve, 10));
}
### ESLint Config
```javascript
module.exports = {
parser: "@typescript-eslint/parser",
rules: {
"require-await": "off",
"@typescript-eslint/require-await": "error"
},
};
tsconfig
Expected Result
No error to be shown
Actual Result
Error: Async arrow function 'fn' has no 'await' expression. 13:21 - 13:23
When the variable I'm using does have an await expression and it's asyncDisposable function needs await.
Additional Info
No response