co(function* () {
let wxUser = yield STORAGE.get(STORAGE.wxUserInfo);
})
以上代码回报错
[eslint] Unexpected unnamed generator function. (func-names)
.eslintrc.js 文件如何配置

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
func-names要求函数必须有名字,不允许使用匿名函数。所以给函数起个名字即可。如: