eslint-config-agent 1.3.3 → 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 +12 -0
  2. package/index.js +14 -1
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ 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
+
13
+ ## [1.3.4](https://github.com/tupe12334/eslint-config/compare/v1.3.3...v1.3.4) (2025-09-20)
14
+
15
+ ### Bug Fixes
16
+
17
+ * update reactHooks configuration to use recommended-latest if available ([bb5bf9d](https://github.com/tupe12334/eslint-config/commit/bb5bf9d8b9ef8110123fd4f8f23d35ee7af22e02))
18
+
7
19
  ## [1.3.3](https://github.com/tupe12334/eslint-config/compare/v1.3.2...v1.3.3) (2025-09-20)
8
20
 
9
21
  ### Features
package/index.js CHANGED
@@ -196,7 +196,20 @@ const config = [
196
196
  },
197
197
  },
198
198
  },
199
- reactHooks.configs["recommended-latest"],
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
+ ),
200
213
  js.configs.recommended,
201
214
 
202
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.3",
3
+ "version": "1.3.5",
4
4
  "description": "ESLint configuration package with TypeScript support",
5
5
  "main": "index.js",
6
6
  "type": "module",