Skip to content

Commit 9664ed6

Browse files
authored
Allow eslint-plugin-react-hooks v6 (#49)
* Allow eslint-plugin-react-hooks v6 * Require ^6.1.1, which is the first to include flat/* configs
1 parent 1f2c021 commit 9664ed6

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.changeset/ripe-doors-attend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@awesome-code-style/eslint-config': patch
3+
---
4+
5+
Allow eslint-plugin-react-hooks v6.1.1

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"peerDependencies": {
3939
"eslint": ">= 9",
4040
"eslint-plugin-react": "^7.37.1",
41-
"eslint-plugin-react-hooks": "^7.0.0"
41+
"eslint-plugin-react-hooks": "^6.1.1 || ^7.0.0"
4242
},
4343
"peerDependenciesMeta": {
4444
"eslint-plugin-react": {

packages/eslint-config/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const reactConfigs = {
1616
},
1717
reactPlugin.configs.flat.recommended,
1818
reactPlugin.configs.flat['jsx-runtime'],
19-
reactHooksPlugin.configs.flat.recommended,
19+
reactHooksPlugin.configs.flat?.recommended ?? reactHooksPlugin.configs['flat/recommended'],
2020
{
2121
files: ['**/*.jsx', '**/*.tsx'],
2222
rules: {

0 commit comments

Comments
 (0)