diff --git a/.changeset/ripe-doors-attend.md b/.changeset/ripe-doors-attend.md new file mode 100644 index 0000000..6ea9608 --- /dev/null +++ b/.changeset/ripe-doors-attend.md @@ -0,0 +1,5 @@ +--- +'@awesome-code-style/eslint-config': patch +--- + +Allow eslint-plugin-react-hooks v6.1.1 diff --git a/package-lock.json b/package-lock.json index d05a5bd..c5bb4e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6202,7 +6202,7 @@ }, "packages/eslint-config": { "name": "@awesome-code-style/eslint-config", - "version": "6.1.2", + "version": "6.2.0", "license": "MIT", "dependencies": { "@eslint/js": "^9.28.0", @@ -6224,7 +6224,7 @@ "peerDependencies": { "eslint": ">= 9", "eslint-plugin-react": "^7.37.1", - "eslint-plugin-react-hooks": "^7.0.0" + "eslint-plugin-react-hooks": "^6.0.0 || ^7.0.0" }, "peerDependenciesMeta": { "eslint-plugin-react": { diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 64a4777..3691d98 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -38,7 +38,7 @@ "peerDependencies": { "eslint": ">= 9", "eslint-plugin-react": "^7.37.1", - "eslint-plugin-react-hooks": "^7.0.0" + "eslint-plugin-react-hooks": "^6.1.1 || ^7.0.0" }, "peerDependenciesMeta": { "eslint-plugin-react": { diff --git a/packages/eslint-config/react.js b/packages/eslint-config/react.js index 09c5680..fd0130a 100644 --- a/packages/eslint-config/react.js +++ b/packages/eslint-config/react.js @@ -16,7 +16,7 @@ export const reactConfigs = { }, reactPlugin.configs.flat.recommended, reactPlugin.configs.flat['jsx-runtime'], - reactHooksPlugin.configs.flat.recommended, + reactHooksPlugin.configs.flat?.recommended ?? reactHooksPlugin.configs['flat/recommended'], { files: ['**/*.jsx', '**/*.tsx'], rules: {