react lazy eslint error Parsing error: Unexpected token import
最近在react项目中使用了React.lazy,然后就在git pre-commit中报错了。
$ eslint --fix .
Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .
error Parsing error: Unexpected token import
安装
原创
2020-08-14 13:15:24 ·
1770 阅读 ·
0 评论