🛠️ An auto-fix is available for this rule.
Disallows calling new on static Promise methods.
Calling a static Promise method with new is invalid and will result
in a TypeError at runtime.
Examples of incorrect code for this rule:
const x = new Promise.resolve(value);Examples of correct code for this rule:
const x = Promise.resolve(value);