Skip to content

Commit acc3720

Browse files
committed
feat(eslint-plugin-react-hooks): merge rule from eslint-plugin-react-compiler into react-hooks plugin (#32416)
This change merges the `react-compiler` rule from `eslint-plugin-react-compiler` into the `eslint-plugin-react-hooks` plugin. In order to do the move in a way that keeps commit history with the moved files, but also no remove them from their origin until a future cleanup change can be done, I did the `git mv` first, and then recreated the files that were moved in their original places, as a separate commit. Unfortunately GH shows the moved files as new instead of the ones that are truly new. But in the IDE and `git blame`, commit history is intact with the moved files. Since this change adds new dependencies, and one of those dependencies has a higher `engines` declaration for `node` than what the plugin currently has, this is technically a breaking change and will have to go out as part of a major release. ### Related Changes - #32458 --------- Co-authored-by: Lauren Tan <[email protected]> DiffTrain build for [5ccfcd1](5ccfcd1)
1 parent 0f058a3 commit acc3720

23 files changed

+197
-144
lines changed

Diff for: compiled-rn/VERSION_NATIVE_FB

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.1.0-native-fb-f695f952-20250312
1+
19.1.0-native-fb-5ccfcd17-20250312

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<3088e682453b35174a9795846b1f48f2>>
10+
* @generated SignedSource<<04572cf21bb1faec3d1449693f5c83dc>>
1111
*/
1212

1313
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
404404
exports.useFormStatus = function () {
405405
return resolveDispatcher().useHostTransitionStatus();
406406
};
407-
exports.version = "19.1.0-native-fb-f695f952-20250312";
407+
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";
408408
})();

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<bfb34f701a905b3f475d0f55647c5e00>>
10+
* @generated SignedSource<<4c34a2c821174bc6aa4572b2ade804c2>>
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.1.0-native-fb-f695f952-20250312";
206+
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<bfb34f701a905b3f475d0f55647c5e00>>
10+
* @generated SignedSource<<4c34a2c821174bc6aa4572b2ade804c2>>
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.1.0-native-fb-f695f952-20250312";
206+
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<789cd91d9f4d9341d843eec7d1242558>>
10+
* @generated SignedSource<<2f9baf1cbea949286dbc61e01395d1e2>>
1111
*/
1212

1313
/*
@@ -26089,11 +26089,11 @@ __DEV__ &&
2608926089
};
2609026090
(function () {
2609126091
var isomorphicReactPackageVersion = React.version;
26092-
if ("19.1.0-native-fb-f695f952-20250312" !== isomorphicReactPackageVersion)
26092+
if ("19.1.0-native-fb-5ccfcd17-20250312" !== isomorphicReactPackageVersion)
2609326093
throw Error(
2609426094
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2609526095
(isomorphicReactPackageVersion +
26096-
"\n - react-dom: 19.1.0-native-fb-f695f952-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
26096+
"\n - react-dom: 19.1.0-native-fb-5ccfcd17-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
2609726097
);
2609826098
})();
2609926099
("function" === typeof Map &&
@@ -26130,10 +26130,10 @@ __DEV__ &&
2613026130
!(function () {
2613126131
var internals = {
2613226132
bundleType: 1,
26133-
version: "19.1.0-native-fb-f695f952-20250312",
26133+
version: "19.1.0-native-fb-5ccfcd17-20250312",
2613426134
rendererPackageName: "react-dom",
2613526135
currentDispatcherRef: ReactSharedInternals,
26136-
reconcilerVersion: "19.1.0-native-fb-f695f952-20250312"
26136+
reconcilerVersion: "19.1.0-native-fb-5ccfcd17-20250312"
2613726137
};
2613826138
internals.overrideHookState = overrideHookState;
2613926139
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26277,5 +26277,5 @@ __DEV__ &&
2627726277
listenToAllSupportedEvents(container);
2627826278
return new ReactDOMHydrationRoot(initialChildren);
2627926279
};
26280-
exports.version = "19.1.0-native-fb-f695f952-20250312";
26280+
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";
2628126281
})();

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<b4839cea8a8501539c0906cfee3233e6>>
10+
* @generated SignedSource<<0f887ef727bb2b65bbbef335f9f3e584>>
1111
*/
1212

1313
/*
@@ -16189,14 +16189,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1618916189
};
1619016190
var isomorphicReactPackageVersion$jscomp$inline_1817 = React.version;
1619116191
if (
16192-
"19.1.0-native-fb-f695f952-20250312" !==
16192+
"19.1.0-native-fb-5ccfcd17-20250312" !==
1619316193
isomorphicReactPackageVersion$jscomp$inline_1817
1619416194
)
1619516195
throw Error(
1619616196
formatProdErrorMessage(
1619716197
527,
1619816198
isomorphicReactPackageVersion$jscomp$inline_1817,
16199-
"19.1.0-native-fb-f695f952-20250312"
16199+
"19.1.0-native-fb-5ccfcd17-20250312"
1620016200
)
1620116201
);
1620216202
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16218,10 +16218,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1621816218
};
1621916219
var internals$jscomp$inline_2291 = {
1622016220
bundleType: 0,
16221-
version: "19.1.0-native-fb-f695f952-20250312",
16221+
version: "19.1.0-native-fb-5ccfcd17-20250312",
1622216222
rendererPackageName: "react-dom",
1622316223
currentDispatcherRef: ReactSharedInternals,
16224-
reconcilerVersion: "19.1.0-native-fb-f695f952-20250312"
16224+
reconcilerVersion: "19.1.0-native-fb-5ccfcd17-20250312"
1622516225
};
1622616226
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1622716227
var hook$jscomp$inline_2292 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16325,4 +16325,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1632516325
listenToAllSupportedEvents(container);
1632616326
return new ReactDOMHydrationRoot(initialChildren);
1632716327
};
16328-
exports.version = "19.1.0-native-fb-f695f952-20250312";
16328+
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<ff4cd431cfca65c04f4ab7ab0f82acc7>>
10+
* @generated SignedSource<<90eda310c43a1fe6bc6873d61bdce2a2>>
1111
*/
1212

1313
/*
@@ -16839,14 +16839,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1683916839
};
1684016840
var isomorphicReactPackageVersion$jscomp$inline_1912 = React.version;
1684116841
if (
16842-
"19.1.0-native-fb-f695f952-20250312" !==
16842+
"19.1.0-native-fb-5ccfcd17-20250312" !==
1684316843
isomorphicReactPackageVersion$jscomp$inline_1912
1684416844
)
1684516845
throw Error(
1684616846
formatProdErrorMessage(
1684716847
527,
1684816848
isomorphicReactPackageVersion$jscomp$inline_1912,
16849-
"19.1.0-native-fb-f695f952-20250312"
16849+
"19.1.0-native-fb-5ccfcd17-20250312"
1685016850
)
1685116851
);
1685216852
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16868,10 +16868,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1686816868
};
1686916869
var internals$jscomp$inline_1919 = {
1687016870
bundleType: 0,
16871-
version: "19.1.0-native-fb-f695f952-20250312",
16871+
version: "19.1.0-native-fb-5ccfcd17-20250312",
1687216872
rendererPackageName: "react-dom",
1687316873
currentDispatcherRef: ReactSharedInternals,
16874-
reconcilerVersion: "19.1.0-native-fb-f695f952-20250312",
16874+
reconcilerVersion: "19.1.0-native-fb-5ccfcd17-20250312",
1687516875
getLaneLabelMap: function () {
1687616876
for (
1687716877
var map = new Map(), lane = 1, index$294 = 0;
@@ -16990,4 +16990,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1699016990
listenToAllSupportedEvents(container);
1699116991
return new ReactDOMHydrationRoot(initialChildren);
1699216992
};
16993-
exports.version = "19.1.0-native-fb-f695f952-20250312";
16993+
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<cbfcfc52530c5b7211e6d3f17172153d>>
10+
* @generated SignedSource<<adfa380b779451af0e4033a7e2c36f7c>>
1111
*/
1212

1313
/*
@@ -26150,11 +26150,11 @@ __DEV__ &&
2615026150
};
2615126151
(function () {
2615226152
var isomorphicReactPackageVersion = React.version;
26153-
if ("19.1.0-native-fb-f695f952-20250312" !== isomorphicReactPackageVersion)
26153+
if ("19.1.0-native-fb-5ccfcd17-20250312" !== isomorphicReactPackageVersion)
2615426154
throw Error(
2615526155
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2615626156
(isomorphicReactPackageVersion +
26157-
"\n - react-dom: 19.1.0-native-fb-f695f952-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
26157+
"\n - react-dom: 19.1.0-native-fb-5ccfcd17-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
2615826158
);
2615926159
})();
2616026160
("function" === typeof Map &&
@@ -26191,10 +26191,10 @@ __DEV__ &&
2619126191
!(function () {
2619226192
var internals = {
2619326193
bundleType: 1,
26194-
version: "19.1.0-native-fb-f695f952-20250312",
26194+
version: "19.1.0-native-fb-5ccfcd17-20250312",
2619526195
rendererPackageName: "react-dom",
2619626196
currentDispatcherRef: ReactSharedInternals,
26197-
reconcilerVersion: "19.1.0-native-fb-f695f952-20250312"
26197+
reconcilerVersion: "19.1.0-native-fb-5ccfcd17-20250312"
2619826198
};
2619926199
internals.overrideHookState = overrideHookState;
2620026200
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26654,7 +26654,7 @@ __DEV__ &&
2665426654
exports.useFormStatus = function () {
2665526655
return resolveDispatcher().useHostTransitionStatus();
2665626656
};
26657-
exports.version = "19.1.0-native-fb-f695f952-20250312";
26657+
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";
2665826658
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2665926659
"function" ===
2666026660
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<aed0f3d8d24d01b56eaac8b018fef391>>
10+
* @generated SignedSource<<ff472a4455d5eb95a6bd8cf9546d3e19>>
1111
*/
1212

1313
/*
@@ -16200,14 +16200,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1620016200
};
1620116201
var isomorphicReactPackageVersion$jscomp$inline_1818 = React.version;
1620216202
if (
16203-
"19.1.0-native-fb-f695f952-20250312" !==
16203+
"19.1.0-native-fb-5ccfcd17-20250312" !==
1620416204
isomorphicReactPackageVersion$jscomp$inline_1818
1620516205
)
1620616206
throw Error(
1620716207
formatProdErrorMessage(
1620816208
527,
1620916209
isomorphicReactPackageVersion$jscomp$inline_1818,
16210-
"19.1.0-native-fb-f695f952-20250312"
16210+
"19.1.0-native-fb-5ccfcd17-20250312"
1621116211
)
1621216212
);
1621316213
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16229,10 +16229,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1622916229
};
1623016230
var internals$jscomp$inline_2294 = {
1623116231
bundleType: 0,
16232-
version: "19.1.0-native-fb-f695f952-20250312",
16232+
version: "19.1.0-native-fb-5ccfcd17-20250312",
1623316233
rendererPackageName: "react-dom",
1623416234
currentDispatcherRef: ReactSharedInternals,
16235-
reconcilerVersion: "19.1.0-native-fb-f695f952-20250312"
16235+
reconcilerVersion: "19.1.0-native-fb-5ccfcd17-20250312"
1623616236
};
1623716237
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1623816238
var hook$jscomp$inline_2295 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16490,4 +16490,4 @@ exports.useFormState = function (action, initialState, permalink) {
1649016490
exports.useFormStatus = function () {
1649116491
return ReactSharedInternals.H.useHostTransitionStatus();
1649216492
};
16493-
exports.version = "19.1.0-native-fb-f695f952-20250312";
16493+
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<8f5bca8a8ec5cadf1f22629b9d118be4>>
10+
* @generated SignedSource<<49dabe2ff44f531383d63d89957eaf23>>
1111
*/
1212

1313
/*
@@ -16854,14 +16854,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1685416854
};
1685516855
var isomorphicReactPackageVersion$jscomp$inline_1913 = React.version;
1685616856
if (
16857-
"19.1.0-native-fb-f695f952-20250312" !==
16857+
"19.1.0-native-fb-5ccfcd17-20250312" !==
1685816858
isomorphicReactPackageVersion$jscomp$inline_1913
1685916859
)
1686016860
throw Error(
1686116861
formatProdErrorMessage(
1686216862
527,
1686316863
isomorphicReactPackageVersion$jscomp$inline_1913,
16864-
"19.1.0-native-fb-f695f952-20250312"
16864+
"19.1.0-native-fb-5ccfcd17-20250312"
1686516865
)
1686616866
);
1686716867
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16883,10 +16883,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1688316883
};
1688416884
var internals$jscomp$inline_1920 = {
1688516885
bundleType: 0,
16886-
version: "19.1.0-native-fb-f695f952-20250312",
16886+
version: "19.1.0-native-fb-5ccfcd17-20250312",
1688716887
rendererPackageName: "react-dom",
1688816888
currentDispatcherRef: ReactSharedInternals,
16889-
reconcilerVersion: "19.1.0-native-fb-f695f952-20250312",
16889+
reconcilerVersion: "19.1.0-native-fb-5ccfcd17-20250312",
1689016890
getLaneLabelMap: function () {
1689116891
for (
1689216892
var map = new Map(), lane = 1, index$294 = 0;
@@ -17159,7 +17159,7 @@ exports.useFormState = function (action, initialState, permalink) {
1715917159
exports.useFormStatus = function () {
1716017160
return ReactSharedInternals.H.useHostTransitionStatus();
1716117161
};
17162-
exports.version = "19.1.0-native-fb-f695f952-20250312";
17162+
exports.version = "19.1.0-native-fb-5ccfcd17-20250312";
1716317163
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1716417164
"function" ===
1716517165
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)