問題:
詳細信息:
iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations. (no-restricted-syntax)
原因:
不推薦使用 for-in for-of。推薦使用forEach,不想提示的話可以禁用這個rule
解決方法:
在eslintrc文件里增加以下內容
