Reactjs React 16升级导致eslint错误爆炸

Reactjs React 16升级导致eslint错误爆炸,reactjs,eslint,Reactjs,Eslint,有人看到升级后的react 16违反了所有eslint规则吗 我已经遇到过两次了。有一次,我对npm软件包进行了大量更新。然后,当我采取非常精细的方法时* 以下是导致大量eslint消息的升级: -"react": "15.6.2", +"react": "16.0.0", -"react-dom": "15.6.2", +"react-dom": "16.0.0", "react-hot-loader": "^3.0.0-beta.6", "react-redux": "^4.4.5", -"

有人看到升级后的react 16违反了所有eslint规则吗

我已经遇到过两次了。有一次,我对npm软件包进行了大量更新。然后,当我采取非常精细的方法时*

以下是导致大量eslint消息的升级:

-"react": "15.6.2",
+"react": "16.0.0",
-"react-dom": "15.6.2",
+"react-dom": "16.0.0",
"react-hot-loader": "^3.0.0-beta.6",
"react-redux": "^4.4.5",
-"react-router": "3.2.0",
+"react-router": "4.2.0",
运行webpack dev server时会出现lint消息,包括以下示例

Use object destructuring  prefer-destructuring
Closing tag of a multiline JSX expression must be on its own line
Expected indentation of 2 spaces but found 27
defaultProp "currentInput" defined for isRequired propType
Block must not be padded by blank lines
*执行jest测试、lint和集成测试,并一次检入一个升级系列


以前发生这种情况时,我尝试修复报告的eslint问题,但没有让React 16运行。

您确定没有更新eslint吗?我看到的另一件事是React路由器的升级,它本身与React 16更新无关。(我知道要继续使用react路由器,您需要更新它以与react 16兼容。)您使用npm还是纱线?你能做一个npm/纱线列表eslint吗?@GabrielBleu i将eslint升级到之前最新的几个步骤,每个步骤都有测试和脱毛。@ChrisR使用npm。下面是输出列表。npm ls eslint mms-ui@0.1.7/path/to/project├── eslint@4.10.0 ├── 未满足的对等依赖expect@21.2.1 └── 未满足的对等依赖react@16.0.0npm错误!缺少对等dep:expect@^1.0.0,expect-jsx@4.0.0npm错误!缺少对等dep:react@^0.14.9| ^15.3.0,redux要求-devtools@3.4.0@ChrisR我回滚了react路由器并进行了干净的安装。相同的eslint错误。你确定没有更新eslint吗?我看到的另一件事是react路由器的升级,它本身与react 16更新无关。(我知道要继续使用react路由器,您需要更新它以与react 16兼容。)您使用npm还是纱线?你能做一个npm/纱线列表eslint吗?@GabrielBleu i将eslint升级到之前最新的几个步骤,每个步骤都有测试和脱毛。@ChrisR使用npm。下面是输出列表。npm ls eslint mms-ui@0.1.7/path/to/project├── eslint@4.10.0 ├── 未满足的对等依赖expect@21.2.1 └── 未满足的对等依赖react@16.0.0npm错误!缺少对等dep:expect@^1.0.0,expect-jsx@4.0.0npm错误!缺少对等dep:react@^0.14.9| ^15.3.0,redux要求-devtools@3.4.0@ChrisR我回滚了react路由器并进行了干净的安装。相同的eslint错误。