Skip to content

Commit d5804df

Browse files
authored
chore: update default React version to 19.1.0 in documentation and settings (#1023)
1 parent 7b13e62 commit d5804df

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/website/content/docs/configurations.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default [
1212
files: ["**/*.ts", "**/*.tsx"],
1313
settings: {
1414
"react-x": {
15-
version: "19.0.0", // React version for analysis
15+
version: "19.1.0", // React version for analysis
1616
// ...other configurations
1717
},
1818
},
@@ -29,8 +29,9 @@ export default [
2929
### `version`
3030

3131
Defines the React version for semantic analysis.
32-
- `"detect"`: Auto-detects from project dependencies (defaults to `19.0.0` if undetectable)
33-
- `string`: Explicit version specification (e.g., `"18.2.0"`)
32+
33+
- `"detect"`: Auto-detects from project dependencies (defaults to `19.1.0` if undetectable)
34+
- `string`: Explicit version specification (e.g., `"18.3.1"`)
3435

3536
### `importSource`
3637

@@ -122,7 +123,7 @@ export default [
122123
...eslintReact.configs["recommended-typescript"],
123124
settings: {
124125
"react-x": {
125-
version: "19.0.0",
126+
version: "19.1.0",
126127
importSource: "react",
127128
polymorphicPropName: "as",
128129
additionalHooks: {
@@ -150,4 +151,3 @@ export default [
150151
}
151152
];
152153
```
153-

packages/shared/src/settings.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const toNormalizedSettings = memoize(
106106
polymorphicPropName,
107107
skipImportCheck,
108108
version: match(version)
109-
.with(P.union(P.nullish, "", "detect"), () => getReactVersion("19.0.0"))
109+
.with(P.union(P.nullish, "", "detect"), () => getReactVersion("19.1.0"))
110110
.otherwise(identity),
111111
};
112112
},

0 commit comments

Comments
 (0)