umijs / umi

A framework in react community ✨
https://umijs.org
MIT License
15.3k stars 2.65k forks source link

升级了eslint到latest,提示找不到依赖 #3772

Closed ybzjsxh closed 4 years ago

ybzjsxh commented 4 years ago

What happens?

升级了eslint到latest,提示找不到依赖

image

最小可复现仓库

https://github.com/ybzjsxh/reproduction

请使用 yarn create umi 创建,并上传到你的 GitHub 仓库

复现步骤,错误日志以及相关配置

➜  ~ create-umi reproduction
? Select the boilerplate type app
? Do you want to use typescript? No
? What functionality do you want to enable? antd, dva
➜  ~ yarn
➜  ~ yarn upgrade eslint --latest
➜  ~ yarn lint

addtion

看了下eslint-config-umi依赖的eslint-plugin-react-hooks版本是1.5.0 image

eslint-plugin-react-hooks@1.5.0里peerDependency依赖的是eslint@5 image 最新的eslint-plugin-react-hooks@2.3.0中加入了eslint@6,我想的话是不是可以解决这个问题 image

相关环境信息

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.