co(function* () { let wxUser = yield STORAGE.get(STORAGE.wxUserInfo); })
The above code reports an error
[eslint] Unexpected unnamed generator function. (func-names)
How to configure the .eslintrc.js file
func-names Requires functions to have names, anonymous functions are not allowed. So just give the function a name. Such as:
func-names
co(function * test() { // func body })
Attached document address: http://eslint.org/docs/rules/...
func-names
Requires functions to have names, anonymous functions are not allowed. So just give the function a name. Such as: