promise/valid-params Correctness
What it does
Enforces the proper number of arguments are passed to Promise functions.
Why is this bad?
Calling a Promise function with the incorrect number of arguments can lead to unexpected behavior or hard to spot bugs.
Examples
Examples of incorrect code for this rule:
javascript
Promise.resolve(1, 2);
Examples of correct code for this rule:
javascript
Promise.resolve(1);