Bug: [no-floating-promises] <Promises must be awaited> #6766
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=5.0.2&sourceType=module&code=AQWAUMwJYHYC4FMBOAzAhgYwcA6rAJgPYDuwA3uJJMQJ5IC2AFoQDYIBc5lVkGSCaRJwA8AFQB8ACgQAPRDADOUQjACS+APydRAGmD0o9BKJoAHBFuC7gzBXBhojl0QEpgAXnHAACkkIGFBGEAVxgAaxgSGHEAbm5IAF84iGAE8AwVO2AUQkIPKkk3Ty4wbgzFOGBZeSUVdXyAcgbk3kzKgyMTc0bmsrabQjsHIx7kvorgAHMWQgAjNBYcOiZWbHdgYgISADpaBmY2FuByrLJj-kFsBPzpuYWl-dWx0pSTyv4FYJZK9b4BRGkcgQimUanweg6xjMCD0tnsjgQLhiwAA9CjgAA5ADy3gAoqBXhcAdVgbUwRDDFDzLDBvCjEjIGjgHBGFAFMAAOJYrEAEQJVG4-DgwSQMGAHy+cGSaQg4AAboQoPhsrlCsjgEA&eslintrc=N4KABGBEBOCuA2BTAzpAXGYkACAXAngA4oDG0AlobgLQrzkB2uA9AwPbUBm8bAhrowDm1QtDYBbcshTooiaGOiQAviGVA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA
Repro Code
ESLint Config
tsconfig
Expected Result
when assigned to a variable, the expected promise is not found by eslint
without a variable, everything works and the function is recognized as a promise
Actual Result
a function definition is expected that this is a promise
Additional Info
No response
The text was updated successfully, but these errors were encountered: