api.login({
success: (errMsg, code) => {
resolve(code)
}
})
for the above code, eslint reported the following error
"errMsg" is defined but never used no-unused-vars
errMsg cannot be deleted because of the order of parameters. In this case, how to deal with it better?