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
ringa_lee2017-05-19 10:13:21
func-names
Requires functions to have names, anonymous functions are not allowed. So just give the function a name. Such as:
co(function * test() {
// func body
})
Attached document address: http://eslint.org/docs/rules/...