@xylabs/eslint-config-react-flat 7.10.4 → 7.10.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/README.md +8 -17
  2. package/package.json +9 -7
package/README.md CHANGED
@@ -27,9 +27,15 @@ Using pnpm:
27
27
  pnpm add -D {{name}}
28
28
  ```
29
29
 
30
+ Using bun:
31
+
32
+ ```sh
33
+ bun add -D {{name}}
34
+ ```
35
+
30
36
  ## Usage
31
37
 
32
- Use the compatibility export in your `eslint.config.ts`:
38
+ Use this config in your `eslint.config.ts`:
33
39
 
34
40
  ```ts
35
41
  import type { Linter } from 'eslint'
@@ -43,14 +49,6 @@ const eslintConfig: Linter.Config[] = [
43
49
  export default eslintConfig
44
50
  ```
45
51
 
46
- For new consumers, prefer the explicit presets:
47
-
48
- ```ts
49
- import { recommendedTypeCheckedConfig } from '@xylabs/eslint-config-react-flat'
50
-
51
- export default recommendedTypeCheckedConfig
52
- ```
53
-
54
52
  ### Extending with custom rules
55
53
 
56
54
  ```ts
@@ -76,18 +74,11 @@ Everything from [`@xylabs/eslint-config-flat`](https://www.npmjs.com/package/@xy
76
74
 
77
75
  - React component and hooks linting via `eslint-plugin-react-x`
78
76
  - DOM API validation via `eslint-plugin-react-dom`
79
- - Hooks validation via `eslint-plugin-react-hooks`
77
+ - Enhanced hooks rules via `eslint-plugin-react-hooks-extra`
80
78
  - Naming convention enforcement via `eslint-plugin-react-naming-convention`
81
79
  - React Refresh validation via `eslint-plugin-react-refresh`
82
80
  - Web API best practices via `eslint-plugin-react-web-api`
83
81
 
84
- Additional exports:
85
-
86
- - `recommendedConfig`: base + React without Storybook
87
- - `recommendedTypeCheckedConfig`: type-aware base + React without Storybook
88
- - `recommendedTypeCheckedWithStorybookConfig`: type-aware base + React + Storybook
89
- - `config`: legacy compatibility export equivalent to the Storybook-inclusive type-aware preset
90
-
91
82
 
92
83
  ## License
93
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/eslint-config-react-flat",
3
- "version": "7.10.4",
3
+ "version": "7.10.7",
4
4
  "description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
5
5
  "keywords": [
6
6
  "xylabs",
@@ -35,8 +35,8 @@
35
35
  "LICENSE"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/parser": "~8.58.1",
39
- "@xylabs/eslint-config-flat": "~7.10.4",
38
+ "@typescript-eslint/parser": "~8.58.2",
39
+ "@xylabs/eslint-config-flat": "~7.10.7",
40
40
  "eslint-plugin-react-dom": "^4.2.3",
41
41
  "eslint-plugin-react-hooks": "^7.0.1",
42
42
  "eslint-plugin-react-naming-convention": "^4.2.3",
@@ -44,18 +44,19 @@
44
44
  "eslint-plugin-react-web-api": "^4.2.3",
45
45
  "eslint-plugin-react-x": "^4.2.3",
46
46
  "eslint-plugin-storybook": "^10.3.5",
47
- "globals": "~17.4.0"
47
+ "globals": "~17.5.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@babel/core": "^7.29.0",
51
51
  "@testing-library/dom": "^10.4.1",
52
52
  "@types/node": "^25.6.0",
53
- "@xylabs/toolchain": "~7.10.4",
54
- "@xylabs/tsconfig": "~7.10.4",
53
+ "@xylabs/toolchain": "~7.10.7",
54
+ "@xylabs/tsconfig": "~7.10.7",
55
55
  "acorn": "^8.16.0",
56
56
  "cosmiconfig": "^9.0.1",
57
57
  "esbuild": "^0.28.0",
58
58
  "eslint": "^10.2.0",
59
+ "eslint-import-resolver-typescript": "^4",
59
60
  "react": "^19.2.5",
60
61
  "react-dom": "^19.2.5",
61
62
  "rollup": "^4.60.1",
@@ -66,7 +67,8 @@
66
67
  "zod": "^4.3.6"
67
68
  },
68
69
  "peerDependencies": {
69
- "eslint": "^9 || ^10"
70
+ "eslint": "^9 || ^10",
71
+ "eslint-import-resolver-typescript": "^4"
70
72
  },
71
73
  "engines": {
72
74
  "node": ">=18.17.1"