@willbooster/eslint-config-ts-react 11.5.6 → 11.5.7

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 (2) hide show
  1. package/eslint.config.js +4 -1
  2. package/package.json +14 -14
package/eslint.config.js CHANGED
@@ -1,8 +1,11 @@
1
1
  import jsReactConfig from '@willbooster/eslint-config-js-react';
2
2
  import tsConfig from '@willbooster/eslint-config-ts';
3
3
 
4
+ // Some upstream configs (e.g. react-hooks) now return arrays of config objects, so flatten one level.
5
+ const flattenConfigs = (configs) => configs.flatMap((config) => (Array.isArray(config) ? config : [config]));
6
+
4
7
  export default [
5
- ...jsReactConfig,
8
+ ...flattenConfigs(jsReactConfig),
6
9
  ...tsConfig.map((config) => ({
7
10
  ...config,
8
11
  ...('files' in config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/eslint-config-ts-react",
3
- "version": "11.5.6",
3
+ "version": "11.5.7",
4
4
  "description": "A ESLint flat config for TypeScript projects using React",
5
5
  "license": "Apache-2.0",
6
6
  "author": "WillBooster Inc.",
@@ -22,37 +22,37 @@
22
22
  },
23
23
  "prettier": "@willbooster/prettier-config",
24
24
  "dependencies": {
25
- "@willbooster/eslint-config-js-react": "11.5.3",
26
- "@willbooster/eslint-config-ts": "11.4.6"
25
+ "@willbooster/eslint-config-js-react": "11.5.4",
26
+ "@willbooster/eslint-config-ts": "11.4.7"
27
27
  },
28
28
  "devDependencies": {
29
- "@eslint/js": "9.35.0",
29
+ "@eslint/js": "9.37.0",
30
30
  "@types/eslint": "9.6.1",
31
31
  "@types/micromatch": "4.0.9",
32
- "@types/node": "24.3.1",
33
- "@types/react": "19.1.12",
32
+ "@types/node": "24.6.2",
33
+ "@types/react": "19.2.0",
34
34
  "@willbooster/prettier-config": "10.2.0",
35
- "eslint": "9.35.0",
35
+ "eslint": "9.37.0",
36
36
  "eslint-config-flat-gitignore": "2.1.0",
37
37
  "eslint-config-prettier": "10.1.8",
38
38
  "eslint-import-resolver-typescript": "4.4.4",
39
39
  "eslint-plugin-import-x": "4.16.1",
40
40
  "eslint-plugin-react": "7.37.5",
41
41
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
42
- "eslint-plugin-react-hooks": "5.2.0",
42
+ "eslint-plugin-react-hooks": "6.1.1",
43
43
  "eslint-plugin-sort-class-members": "1.21.0",
44
44
  "eslint-plugin-sort-destructure-keys": "2.0.0",
45
45
  "eslint-plugin-unicorn": "61.0.2",
46
46
  "eslint-plugin-unused-imports": "4.2.0",
47
- "globals": "16.3.0",
48
- "lint-staged": "16.1.6",
47
+ "globals": "16.4.0",
48
+ "lint-staged": "16.2.3",
49
49
  "micromatch": "4.0.8",
50
50
  "prettier": "3.6.2",
51
- "prettier-plugin-java": "2.7.4",
52
- "react": "19.1.1",
51
+ "prettier-plugin-java": "2.7.5",
52
+ "react": "19.2.0",
53
53
  "sort-package-json": "3.4.0",
54
- "typescript": "5.9.2",
55
- "typescript-eslint": "8.42.0",
54
+ "typescript": "5.9.3",
55
+ "typescript-eslint": "8.45.0",
56
56
  "use-immer": "0.11.0"
57
57
  },
58
58
  "peerDependencies": {