Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

correctness

No Floating Promise In Function

Handle promise-returning calls explicitly

#Metadata

Rule ID
ts.correctness.no-floating-promise-in-function
Severity
high
Confidence
0.85
Languages
javascript, typescript
Presets
recommended, strict
Stability
stable
Applies to
block
Tags
correctness, rules-catalog

#Why it matters

Handle promise-returning calls explicitly:statement-level promise calls should be awaited, voided, returned, or chained with rejection handling.

#Remediation

Handle promise-returning calls explicitly:statement-level promise calls should be awaited, voided, returned, or chained with rejection handling.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.correctness.no-floating-promise-in-function.rule.yaml.