Skip to content

Commit 7114929

Browse files
authored
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.
1 parent e20c8c8 commit 7114929

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/eslint-config-next/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"eslint-plugin-import": "^2.26.0",
1919
"eslint-plugin-jsx-a11y": "^6.5.1",
2020
"eslint-plugin-react": "^7.31.7",
21-
"eslint-plugin-react-hooks": "5.0.0-canary-7118f5dd7-20230705"
21+
"eslint-plugin-react-hooks": "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705"
2222
},
2323
"peerDependencies": {
2424
"eslint": "^7.23.0 || ^8.0.0",

pnpm-lock.yaml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)