Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

correctness

Missing Async On Promise Method

Mark promise callbacks async when using await

#Metadata

Rule ID
ts.correctness.missing-async-on-promise-method
Severity
high
Confidence
0.85
Languages
javascript, typescript
Presets
recommended, strict
Stability
stable
Applies to
block
Tags
correctness, rules-catalog

#Why it matters

Mark promise callbacks async when using await:then/catch handlers that use await must be declared async.

#Remediation

Mark promise callbacks async when using await:then/catch handlers that use await must be declared async.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.correctness.missing-async-on-promise-method.rule.yaml.