no-thenable
Configuration
rslint.config.ts
Rule Details
Disallow adding a then property to objects or classes, and disallow exporting
a binding named then.
Objects with a then property can be treated as thenables when they are
awaited. Modules with a named then export can also behave unexpectedly with
dynamic import().
Computed property names are also checked when they can be statically resolved to then.
Examples of incorrect code for this rule:
Examples of correct code for this rule: