Add lint tests that should fail (#28147)

These though fail.

Anon default export: https://github.com/facebook/react/issues/21181
Promise callbacks: https://github.com/facebook/react/issues/26186
Returning anon functions: https://github.com/facebook/react/issues/22520

DiffTrain build for commit https://github.com/facebook/react/commit/cc7d4216299e1d23a6e77b58d4c32ec1b8864ead.
This commit is contained in:
rickhanlonii
2024-01-29 17:59:21 +00:00
parent 272139fecc
commit 3789d11dbb
7 changed files with 9 additions and 9 deletions
@@ -25607,7 +25607,7 @@ if (__DEV__) {
return root;
}
var ReactVersion = "18.3.0-canary-971b62f47-20240129";
var ReactVersion = "18.3.0-canary-cc7d42162-20240129";
// Might add PROFILE later.
@@ -9149,7 +9149,7 @@ var devToolsConfig$jscomp$inline_1029 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-971b62f47-20240129",
version: "18.3.0-canary-cc7d42162-20240129",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1205 = {
@@ -9180,7 +9180,7 @@ var internals$jscomp$inline_1205 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-971b62f47-20240129"
reconcilerVersion: "18.3.0-canary-cc7d42162-20240129"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1206 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9577,7 +9577,7 @@ var devToolsConfig$jscomp$inline_1071 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-971b62f47-20240129",
version: "18.3.0-canary-cc7d42162-20240129",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1246 = {
@@ -9608,7 +9608,7 @@ var internals$jscomp$inline_1246 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-971b62f47-20240129"
reconcilerVersion: "18.3.0-canary-cc7d42162-20240129"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1247 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -24,7 +24,7 @@ if (__DEV__) {
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = "18.3.0-canary-971b62f47-20240129";
var ReactVersion = "18.3.0-canary-cc7d42162-20240129";
// ATTENTION
// When adding new symbols to this file,
@@ -545,4 +545,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-971b62f47-20240129";
exports.version = "18.3.0-canary-cc7d42162-20240129";
@@ -541,7 +541,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-971b62f47-20240129";
exports.version = "18.3.0-canary-cc7d42162-20240129";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
971b62f479a5dbd84688ba2b2c507de2a1d22dcc
cc7d4216299e1d23a6e77b58d4c32ec1b8864ead