Skip to content

Commit 0badfe2

Browse files
committed
[eprh] Update plugin config to be compatible with flat and legacy (facebook#34762)
This has been incredibly frustrating as [ESLint's own docs](https://eslint.org/docs/latest/extend/plugins#backwards-compatibility-for-legacy-configs) are clearly wrong (see facebook#34679). This PR uses [eslint-plugin-react's setup](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/index.js) as a reference, where the presets are assigned to `configs.flat` (not documented by eslint). DiffTrain build for [848e0e3](facebook@848e0e3)
1 parent 635dc19 commit 0badfe2

27 files changed

+201
-158
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.3.0-native-fb-a4eb2dfa-20251006
1+
19.3.0-native-fb-848e0e3a-20251007

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<248d961c3faa81934c3545002e97376a>>
10+
* @generated SignedSource<<9385e3d55b2db9e223335e9f4f00973e>>
1111
*/
1212

1313
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
404404
exports.useFormStatus = function () {
405405
return resolveDispatcher().useHostTransitionStatus();
406406
};
407-
exports.version = "19.3.0-native-fb-a4eb2dfa-20251006";
407+
exports.version = "19.3.0-native-fb-848e0e3a-20251007";
408408
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<9f3bf0f8d4121fec73d82a249109c8a1>>
10+
* @generated SignedSource<<e3b3d101c920494f8e6989d050e012b6>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.3.0-native-fb-a4eb2dfa-20251006";
206+
exports.version = "19.3.0-native-fb-848e0e3a-20251007";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<9f3bf0f8d4121fec73d82a249109c8a1>>
10+
* @generated SignedSource<<e3b3d101c920494f8e6989d050e012b6>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.3.0-native-fb-a4eb2dfa-20251006";
206+
exports.version = "19.3.0-native-fb-848e0e3a-20251007";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<7c729a66af1a814a2d9172547a80c71d>>
10+
* @generated SignedSource<<c9da4d048c811f906e4c3fd719c622c4>>
1111
*/
1212

1313
/*
@@ -30124,11 +30124,11 @@ __DEV__ &&
3012430124
};
3012530125
(function () {
3012630126
var isomorphicReactPackageVersion = React.version;
30127-
if ("19.3.0-native-fb-a4eb2dfa-20251006" !== isomorphicReactPackageVersion)
30127+
if ("19.3.0-native-fb-848e0e3a-20251007" !== isomorphicReactPackageVersion)
3012830128
throw Error(
3012930129
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3013030130
(isomorphicReactPackageVersion +
30131-
"\n - react-dom: 19.3.0-native-fb-a4eb2dfa-20251006\nLearn more: https://react.dev/warnings/version-mismatch")
30131+
"\n - react-dom: 19.3.0-native-fb-848e0e3a-20251007\nLearn more: https://react.dev/warnings/version-mismatch")
3013230132
);
3013330133
})();
3013430134
("function" === typeof Map &&
@@ -30165,10 +30165,10 @@ __DEV__ &&
3016530165
!(function () {
3016630166
var internals = {
3016730167
bundleType: 1,
30168-
version: "19.3.0-native-fb-a4eb2dfa-20251006",
30168+
version: "19.3.0-native-fb-848e0e3a-20251007",
3016930169
rendererPackageName: "react-dom",
3017030170
currentDispatcherRef: ReactSharedInternals,
30171-
reconcilerVersion: "19.3.0-native-fb-a4eb2dfa-20251006"
30171+
reconcilerVersion: "19.3.0-native-fb-848e0e3a-20251007"
3017230172
};
3017330173
internals.overrideHookState = overrideHookState;
3017430174
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30318,5 +30318,5 @@ __DEV__ &&
3031830318
listenToAllSupportedEvents(container);
3031930319
return new ReactDOMHydrationRoot(initialChildren);
3032030320
};
30321-
exports.version = "19.3.0-native-fb-a4eb2dfa-20251006";
30321+
exports.version = "19.3.0-native-fb-848e0e3a-20251007";
3032230322
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<93ac03104b4437ba398b116508d6baf3>>
10+
* @generated SignedSource<<fe24d1d0404239568f9caf7ae60129ce>>
1111
*/
1212

1313
/*
@@ -17576,14 +17576,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1757617576
};
1757717577
var isomorphicReactPackageVersion$jscomp$inline_2059 = React.version;
1757817578
if (
17579-
"19.3.0-native-fb-a4eb2dfa-20251006" !==
17579+
"19.3.0-native-fb-848e0e3a-20251007" !==
1758017580
isomorphicReactPackageVersion$jscomp$inline_2059
1758117581
)
1758217582
throw Error(
1758317583
formatProdErrorMessage(
1758417584
527,
1758517585
isomorphicReactPackageVersion$jscomp$inline_2059,
17586-
"19.3.0-native-fb-a4eb2dfa-20251006"
17586+
"19.3.0-native-fb-848e0e3a-20251007"
1758717587
)
1758817588
);
1758917589
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17605,10 +17605,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1760517605
};
1760617606
var internals$jscomp$inline_2636 = {
1760717607
bundleType: 0,
17608-
version: "19.3.0-native-fb-a4eb2dfa-20251006",
17608+
version: "19.3.0-native-fb-848e0e3a-20251007",
1760917609
rendererPackageName: "react-dom",
1761017610
currentDispatcherRef: ReactSharedInternals,
17611-
reconcilerVersion: "19.3.0-native-fb-a4eb2dfa-20251006"
17611+
reconcilerVersion: "19.3.0-native-fb-848e0e3a-20251007"
1761217612
};
1761317613
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1761417614
var hook$jscomp$inline_2637 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17715,4 +17715,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1771517715
listenToAllSupportedEvents(container);
1771617716
return new ReactDOMHydrationRoot(initialChildren);
1771717717
};
17718-
exports.version = "19.3.0-native-fb-a4eb2dfa-20251006";
17718+
exports.version = "19.3.0-native-fb-848e0e3a-20251007";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<bde5433bafe0906ac7f35862c96a07b9>>
10+
* @generated SignedSource<<ba53d5c21b15a68e553fae24f1ccc7da>>
1111
*/
1212

1313
/*
@@ -19714,14 +19714,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1971419714
};
1971519715
var isomorphicReactPackageVersion$jscomp$inline_2374 = React.version;
1971619716
if (
19717-
"19.3.0-native-fb-a4eb2dfa-20251006" !==
19717+
"19.3.0-native-fb-848e0e3a-20251007" !==
1971819718
isomorphicReactPackageVersion$jscomp$inline_2374
1971919719
)
1972019720
throw Error(
1972119721
formatProdErrorMessage(
1972219722
527,
1972319723
isomorphicReactPackageVersion$jscomp$inline_2374,
19724-
"19.3.0-native-fb-a4eb2dfa-20251006"
19724+
"19.3.0-native-fb-848e0e3a-20251007"
1972519725
)
1972619726
);
1972719727
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19743,10 +19743,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1974319743
};
1974419744
var internals$jscomp$inline_2381 = {
1974519745
bundleType: 0,
19746-
version: "19.3.0-native-fb-a4eb2dfa-20251006",
19746+
version: "19.3.0-native-fb-848e0e3a-20251007",
1974719747
rendererPackageName: "react-dom",
1974819748
currentDispatcherRef: ReactSharedInternals,
19749-
reconcilerVersion: "19.3.0-native-fb-a4eb2dfa-20251006",
19749+
reconcilerVersion: "19.3.0-native-fb-848e0e3a-20251007",
1975019750
getLaneLabelMap: function () {
1975119751
for (
1975219752
var map = new Map(), lane = 1, index$331 = 0;
@@ -19869,4 +19869,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1986919869
listenToAllSupportedEvents(container);
1987019870
return new ReactDOMHydrationRoot(initialChildren);
1987119871
};
19872-
exports.version = "19.3.0-native-fb-a4eb2dfa-20251006";
19872+
exports.version = "19.3.0-native-fb-848e0e3a-20251007";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<4f9bcbf5864772592c5ceab0d970e531>>
10+
* @generated SignedSource<<57d512b675e76abbc6083c82caf996d1>>
1111
*/
1212

1313
/*
@@ -30180,11 +30180,11 @@ __DEV__ &&
3018030180
};
3018130181
(function () {
3018230182
var isomorphicReactPackageVersion = React.version;
30183-
if ("19.3.0-native-fb-a4eb2dfa-20251006" !== isomorphicReactPackageVersion)
30183+
if ("19.3.0-native-fb-848e0e3a-20251007" !== isomorphicReactPackageVersion)
3018430184
throw Error(
3018530185
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3018630186
(isomorphicReactPackageVersion +
30187-
"\n - react-dom: 19.3.0-native-fb-a4eb2dfa-20251006\nLearn more: https://react.dev/warnings/version-mismatch")
30187+
"\n - react-dom: 19.3.0-native-fb-848e0e3a-20251007\nLearn more: https://react.dev/warnings/version-mismatch")
3018830188
);
3018930189
})();
3019030190
("function" === typeof Map &&
@@ -30221,10 +30221,10 @@ __DEV__ &&
3022130221
!(function () {
3022230222
var internals = {
3022330223
bundleType: 1,
30224-
version: "19.3.0-native-fb-a4eb2dfa-20251006",
30224+
version: "19.3.0-native-fb-848e0e3a-20251007",
3022530225
rendererPackageName: "react-dom",
3022630226
currentDispatcherRef: ReactSharedInternals,
30227-
reconcilerVersion: "19.3.0-native-fb-a4eb2dfa-20251006"
30227+
reconcilerVersion: "19.3.0-native-fb-848e0e3a-20251007"
3022830228
};
3022930229
internals.overrideHookState = overrideHookState;
3023030230
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30690,7 +30690,7 @@ __DEV__ &&
3069030690
exports.useFormStatus = function () {
3069130691
return resolveDispatcher().useHostTransitionStatus();
3069230692
};
30693-
exports.version = "19.3.0-native-fb-a4eb2dfa-20251006";
30693+
exports.version = "19.3.0-native-fb-848e0e3a-20251007";
3069430694
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3069530695
"function" ===
3069630696
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<e8946fb953b13668cabb3c5cb70fb595>>
10+
* @generated SignedSource<<1c22276fa24da9955d62505f46eeab06>>
1111
*/
1212

1313
/*
@@ -17587,14 +17587,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1758717587
};
1758817588
var isomorphicReactPackageVersion$jscomp$inline_2060 = React.version;
1758917589
if (
17590-
"19.3.0-native-fb-a4eb2dfa-20251006" !==
17590+
"19.3.0-native-fb-848e0e3a-20251007" !==
1759117591
isomorphicReactPackageVersion$jscomp$inline_2060
1759217592
)
1759317593
throw Error(
1759417594
formatProdErrorMessage(
1759517595
527,
1759617596
isomorphicReactPackageVersion$jscomp$inline_2060,
17597-
"19.3.0-native-fb-a4eb2dfa-20251006"
17597+
"19.3.0-native-fb-848e0e3a-20251007"
1759817598
)
1759917599
);
1760017600
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17616,10 +17616,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1761617616
};
1761717617
var internals$jscomp$inline_2639 = {
1761817618
bundleType: 0,
17619-
version: "19.3.0-native-fb-a4eb2dfa-20251006",
17619+
version: "19.3.0-native-fb-848e0e3a-20251007",
1762017620
rendererPackageName: "react-dom",
1762117621
currentDispatcherRef: ReactSharedInternals,
17622-
reconcilerVersion: "19.3.0-native-fb-a4eb2dfa-20251006"
17622+
reconcilerVersion: "19.3.0-native-fb-848e0e3a-20251007"
1762317623
};
1762417624
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1762517625
var hook$jscomp$inline_2640 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17879,4 +17879,4 @@ exports.useFormState = function (action, initialState, permalink) {
1787917879
exports.useFormStatus = function () {
1788017880
return ReactSharedInternals.H.useHostTransitionStatus();
1788117881
};
17882-
exports.version = "19.3.0-native-fb-a4eb2dfa-20251006";
17882+
exports.version = "19.3.0-native-fb-848e0e3a-20251007";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<c8ff927d0653babae6b957e99ecfe2d0>>
10+
* @generated SignedSource<<3077b742d566e14c46181e378c2a63e9>>
1111
*/
1212

1313
/*
@@ -19729,14 +19729,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1972919729
};
1973019730
var isomorphicReactPackageVersion$jscomp$inline_2375 = React.version;
1973119731
if (
19732-
"19.3.0-native-fb-a4eb2dfa-20251006" !==
19732+
"19.3.0-native-fb-848e0e3a-20251007" !==
1973319733
isomorphicReactPackageVersion$jscomp$inline_2375
1973419734
)
1973519735
throw Error(
1973619736
formatProdErrorMessage(
1973719737
527,
1973819738
isomorphicReactPackageVersion$jscomp$inline_2375,
19739-
"19.3.0-native-fb-a4eb2dfa-20251006"
19739+
"19.3.0-native-fb-848e0e3a-20251007"
1974019740
)
1974119741
);
1974219742
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19758,10 +19758,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1975819758
};
1975919759
var internals$jscomp$inline_2382 = {
1976019760
bundleType: 0,
19761-
version: "19.3.0-native-fb-a4eb2dfa-20251006",
19761+
version: "19.3.0-native-fb-848e0e3a-20251007",
1976219762
rendererPackageName: "react-dom",
1976319763
currentDispatcherRef: ReactSharedInternals,
19764-
reconcilerVersion: "19.3.0-native-fb-a4eb2dfa-20251006",
19764+
reconcilerVersion: "19.3.0-native-fb-848e0e3a-20251007",
1976519765
getLaneLabelMap: function () {
1976619766
for (
1976719767
var map = new Map(), lane = 1, index$331 = 0;
@@ -20037,7 +20037,7 @@ exports.useFormState = function (action, initialState, permalink) {
2003720037
exports.useFormStatus = function () {
2003820038
return ReactSharedInternals.H.useHostTransitionStatus();
2003920039
};
20040-
exports.version = "19.3.0-native-fb-a4eb2dfa-20251006";
20040+
exports.version = "19.3.0-native-fb-848e0e3a-20251007";
2004120041
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2004220042
"function" ===
2004320043
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)