GeezerVison is showing github.com — Re-enable shorthand CSS property collision warning (#18002) · react/react@4f71f25
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/react-dom/src/__tests__/ReactDOMShorthandCSSPropertyCollision-test.js -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
10 | 10 | 'use strict'; |
11 | 11 |
|
12 | 12 | describe('ReactDOMShorthandCSSPropertyCollision', () => { |
13 | | - let ReactFeatureFlags; |
14 | 13 | let React; |
15 | 14 | let ReactDOM; |
16 | 15 |
|
17 | 16 | beforeEach(() => { |
18 | 17 | jest.resetModules(); |
19 | | - ReactFeatureFlags = require('shared/ReactFeatureFlags'); |
20 | | - ReactFeatureFlags.warnAboutShorthandPropertyCollision = true; |
21 | 18 | React = require('react'); |
22 | 19 | ReactDOM = require('react-dom'); |
23 | 20 | }); |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/shared/ReactFeatureFlags.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -48,7 +48,7 @@ export const disableJavaScriptURLs = false; |
48 | 48 | // Control this behavior with a flag to support 16.6 minor releases in the meanwhile. |
49 | 49 | export const exposeConcurrentModeAPIs = __EXPERIMENTAL__; |
50 | 50 |
|
51 | | -export const warnAboutShorthandPropertyCollision = false; |
| 51 | +export const warnAboutShorthandPropertyCollision = true; |
52 | 52 |
|
53 | 53 | // Experimental React Flare event system and event components support. |
54 | 54 | export const enableDeprecatedFlareAPI = false; |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.native-fb.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -25,7 +25,7 @@ export const enableSuspenseServerRenderer = false; |
25 | 25 | export const enableSelectiveHydration = false; |
26 | 26 | export const enableChunksAPI = false; |
27 | 27 | export const exposeConcurrentModeAPIs = __EXPERIMENTAL__; |
28 | | -export const warnAboutShorthandPropertyCollision = false; |
| 28 | +export const warnAboutShorthandPropertyCollision = true; |
29 | 29 | export const enableSchedulerDebugging = false; |
30 | 30 | export const debugRenderPhaseSideEffectsForStrictMode = true; |
31 | 31 | export const disableJavaScriptURLs = false; |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.native-oss.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ export const enableChunksAPI = false; |
24 | 24 | export const disableJavaScriptURLs = false; |
25 | 25 | export const disableInputAttributeSyncing = false; |
26 | 26 | export const exposeConcurrentModeAPIs = __EXPERIMENTAL__; |
27 | | -export const warnAboutShorthandPropertyCollision = false; |
| 27 | +export const warnAboutShorthandPropertyCollision = true; |
28 | 28 | export const enableSchedulerDebugging = false; |
29 | 29 | export const enableDeprecatedFlareAPI = false; |
30 | 30 | export const enableFundamentalAPI = false; |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.persistent.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ export const enableChunksAPI = false; |
24 | 24 | export const disableJavaScriptURLs = false; |
25 | 25 | export const disableInputAttributeSyncing = false; |
26 | 26 | export const exposeConcurrentModeAPIs = __EXPERIMENTAL__; |
27 | | -export const warnAboutShorthandPropertyCollision = false; |
| 27 | +export const warnAboutShorthandPropertyCollision = true; |
28 | 28 | export const enableSchedulerDebugging = false; |
29 | 29 | export const enableDeprecatedFlareAPI = false; |
30 | 30 | export const enableFundamentalAPI = false; |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.test-renderer.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ export const enableChunksAPI = false; |
24 | 24 | export const disableJavaScriptURLs = false; |
25 | 25 | export const disableInputAttributeSyncing = false; |
26 | 26 | export const exposeConcurrentModeAPIs = __EXPERIMENTAL__; |
27 | | -export const warnAboutShorthandPropertyCollision = false; |
| 27 | +export const warnAboutShorthandPropertyCollision = true; |
28 | 28 | export const enableSchedulerDebugging = false; |
29 | 29 | export const enableDeprecatedFlareAPI = false; |
30 | 30 | export const enableFundamentalAPI = false; |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.testing.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ export const enableChunksAPI = false; |
24 | 24 | export const disableJavaScriptURLs = false; |
25 | 25 | export const disableInputAttributeSyncing = false; |
26 | 26 | export const exposeConcurrentModeAPIs = __EXPERIMENTAL__; |
27 | | -export const warnAboutShorthandPropertyCollision = false; |
| 27 | +export const warnAboutShorthandPropertyCollision = true; |
28 | 28 | export const enableSchedulerDebugging = false; |
29 | 29 | export const enableDeprecatedFlareAPI = false; |
30 | 30 | export const enableFundamentalAPI = false; |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/shared/forks/ReactFeatureFlags.www.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -16,6 +16,7 @@ export const { |
16 | 16 | disableInputAttributeSyncing, |
17 | 17 | enableTrustedTypesIntegration, |
18 | 18 | deferPassiveEffectCleanupDuringUnmount, |
| 19 | + warnAboutShorthandPropertyCollision, |
19 | 20 | } = require('ReactFeatureFlags'); |
20 | 21 |
|
21 | 22 | // In www, we have experimental support for gathering data |
@@ -32,7 +33,6 @@ export const enableSchedulerDebugging = true; |
32 | 33 |
|
33 | 34 | export const replayFailedUnitOfWorkWithInvokeGuardedCallback = false; |
34 | 35 | export const warnAboutDeprecatedLifecycles = true; |
35 | | -export const warnAboutShorthandPropertyCollision = false; |
36 | 36 | export const disableLegacyContext = false; |
37 | 37 | export const warnAboutStringRefs = false; |
38 | 38 | export const warnAboutDefaultPropsOnFunctionComponents = false; |
|