The param-names rule requires using resolve, reject as parameter names for new Promise((resolve, reject) => {}). It would be cool if this rule implemented a fixer that would automatically correct the parameter names:
new Promise((yea, naw) => {})
// --fix
new Promise((resolve, reject) => {})
It should also support a function with one parameter:
new Promise((yea) => {})
// --fix
new Promise((resolve) => {})
Fixer documentation
The
param-namesrule requires usingresolve, rejectas parameter names fornew Promise((resolve, reject) => {}). It would be cool if this rule implemented a fixer that would automatically correct the parameter names:It should also support a function with one parameter:
Fixer documentation