Skip to content

Commit e202506

Browse files
committed
fix: update fallback version in normalizeSettings to "19.1.0"
1 parent c8f196e commit e202506

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/shared/src/settings.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ export const normalizeSettings = ({
261261
version,
262262
...rest
263263
}: ESLintReactSettings) => {
264-
const fallbackVersion = DEFAULT_ESLINT_REACT_SETTINGS.version;
265264
return {
266265
...rest,
267266
components: additionalComponents.map((component) => {
@@ -285,7 +284,7 @@ export const normalizeSettings = ({
285284
skipImportCheck,
286285
strict,
287286
version: match(version)
288-
.with(P.union(P.nullish, "", "detect"), () => getReactVersion(fallbackVersion))
287+
.with(P.union(P.nullish, "", "detect"), () => getReactVersion("19.1.0"))
289288
.otherwise(identity),
290289
} as const satisfies ESLintReactSettingsNormalized;
291290
};

0 commit comments

Comments
 (0)