Unverified Commit 71149293 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

Allow range version for eslint config (#53751)

Fixes #52365

In #52275 that eslint config changed to a fixed canary version to leverage the improvement of `react-hooks` eslint plugin but breaks the installation when 3rd party packages having strict matching for certain version of eslint plugin.

This PR allows both previous version and the canary version be present.
parent e20c8c82
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.31.7", "eslint-plugin-react": "^7.31.7",
"eslint-plugin-react-hooks": "5.0.0-canary-7118f5dd7-20230705" "eslint-plugin-react-hooks": "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705"
}, },
"peerDependencies": { "peerDependencies": {
"eslint": "^7.23.0 || ^8.0.0", "eslint": "^7.23.0 || ^8.0.0",
......
...@@ -663,8 +663,8 @@ importers: ...@@ -663,8 +663,8 @@ importers:
specifier: ^7.31.7 specifier: ^7.31.7
version: 7.31.8(eslint@8.31.0) version: 7.31.8(eslint@8.31.0)
eslint-plugin-react-hooks: eslint-plugin-react-hooks:
specifier: 5.0.0-canary-7118f5dd7-20230705 specifier: ^4.5.0 || 5.0.0-canary-7118f5dd7-20230705
version: 5.0.0-canary-7118f5dd7-20230705(eslint@8.31.0) version: 4.5.0(eslint@8.31.0)
typescript: typescript:
specifier: '>=3.3.1' specifier: '>=3.3.1'
version: 4.8.2 version: 4.8.2
...@@ -12916,8 +12916,8 @@ packages: ...@@ -12916,8 +12916,8 @@ packages:
eslint: 7.24.0 eslint: 7.24.0
dev: true dev: true
/eslint-plugin-react-hooks@5.0.0-canary-7118f5dd7-20230705(eslint@8.31.0): /eslint-plugin-react-hooks@4.5.0(eslint@8.31.0):
resolution: {integrity: sha512-AZYbMo/NW9chdL7vk6HQzQhT+PvTAEVqWk9ziruUoW2kAOcN5qNyelv70e0F1VNQAbvutOC9oc+xfWycI9FxDw==} resolution: {integrity: sha512-8k1gRt7D7h03kd+SAAlzXkQwWK22BnK6GKZG+FJA6BAGy22CFvl8kCIXKpVux0cCxMWDQUPqSok0LKaZ0aOcCw==}
engines: {node: '>=10'} engines: {node: '>=10'}
peerDependencies: peerDependencies:
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment