-
-
Notifications
You must be signed in to change notification settings - Fork 731
Labels
A-LinterArea: linterArea: linterL-JavaScriptLanguage: JavaScript and super languagesLanguage: JavaScript and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bugStatus: report has been confirmed as a valid bug
Description
Environment information
biome 2.1.2Rule name
noFloatingPromise
Playground link
Expected result
function doSth() {
const innerFn = () => {
return Promise.resolve(1);
}
return 'hah'
}
// ✖ A "floating" Promise was found, meaning it is not properly handled and could lead to ignored errors or unexpected behavior.
doSth()However the doSth is not an async function.
Code of Conduct
- I agree to follow Biome's Code of Conduct
Metadata
Metadata
Assignees
Labels
A-LinterArea: linterArea: linterL-JavaScriptLanguage: JavaScript and super languagesLanguage: JavaScript and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bugStatus: report has been confirmed as a valid bug