eslint-config-agent 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/index.js +14 -2
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. See [Conven
4
4
 
5
5
 
6
6
 
7
+ ## [1.3.5](https://github.com/tupe12334/eslint-config/compare/v1.3.4...v1.3.5) (2025-09-20)
8
+
9
+ ### Bug Fixes
10
+
11
+ * enhance reactHooks configuration to support legacy recommended flat config ([c23e68f](https://github.com/tupe12334/eslint-config/commit/c23e68f85755b81ce698b616d4eb26b46c04040a))
12
+
7
13
  ## [1.3.4](https://github.com/tupe12334/eslint-config/compare/v1.3.3...v1.3.4) (2025-09-20)
8
14
 
9
15
  ### Bug Fixes
package/index.js CHANGED
@@ -196,8 +196,20 @@ const config = [
196
196
  },
197
197
  },
198
198
  },
199
- // Use recommended-latest if available (v5+), otherwise fall back to recommended
200
- ...(reactHooks.configs["recommended-latest"] ? [reactHooks.configs["recommended-latest"]] : [reactHooks.configs.recommended]),
199
+ // Use recommended-latest if available (v5+), otherwise create flat config equivalent of legacy recommended
200
+ ...(reactHooks.configs["recommended-latest"]
201
+ ? [reactHooks.configs["recommended-latest"]]
202
+ : [{
203
+ name: "react-hooks/recommended-flat",
204
+ plugins: {
205
+ "react-hooks": reactHooks,
206
+ },
207
+ rules: {
208
+ "react-hooks/rules-of-hooks": "error",
209
+ "react-hooks/exhaustive-deps": "warn",
210
+ },
211
+ }]
212
+ ),
201
213
  js.configs.recommended,
202
214
 
203
215
  // TypeScript and TSX files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-agent",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "ESLint configuration package with TypeScript support",
5
5
  "main": "index.js",
6
6
  "type": "module",