@samitouri / QOS-React / commits / 45c1ff348e

Remove unnecessary 'use strict' in the source (#11433)

* Remove use strict from ES modules * Delete unused file This was unused since Stack.

Dan Abramov committed Nov 2, 2017 at 20:32 UTC 45c1ff348e1c7d03567f5bba6cb32cffa9222972
179 files changed -359
packages/events/EventPluginHub.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import ReactErrorUtils from 'shared/ReactErrorUtils';
9 import invariant from 'fbjs/lib/invariant';
10
packages/events/EventPluginRegistry.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {DispatchConfig} from './ReactSyntheticEventType';
11 import type {
12 AnyNativeEvent,
packages/events/EventPluginUtils.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import ReactErrorUtils from 'shared/ReactErrorUtils';
9 import invariant from 'fbjs/lib/invariant';
10 import warning from 'fbjs/lib/warning';
packages/events/EventPropagators.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import {
9 getParentInstance,
10 traverseTwoPhase,
packages/events/PluginModuleType.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from 'react-reconciler/src/ReactFiber';
11 import type {
12 DispatchConfig,
packages/events/ReactControlledComponent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import invariant from 'fbjs/lib/invariant';
9
10 import EventPluginUtils from './EventPluginUtils';
packages/events/ReactEventEmitterMixin.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import EventPluginHub from './EventPluginHub';
9
10 function runEventQueueInBatch(events) {
packages/events/ReactGenericBatching.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import ReactControlledComponent from './ReactControlledComponent';
9
10 // Used as a way to call batchedUpdates when we don't have a reference to
packages/events/ReactSyntheticEventType.js
-2
@@ -8,8 +8,6 @@
8 * @flow
9 */
10
11 -'use strict';
12 -
11 import type {Fiber} from 'react-reconciler/src/ReactFiber';
12
13 export type DispatchConfig = {
packages/events/ResponderEventPlugin.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import {getLowestCommonAncestor, isAncestor} from 'shared/ReactTreeTraversal';
9
10 import EventPluginUtils from './EventPluginUtils';
packages/events/ResponderSyntheticEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticEvent from './SyntheticEvent';
9
10 /**
packages/events/ResponderTouchHistoryStore.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import invariant from 'fbjs/lib/invariant';
11 import warning from 'fbjs/lib/warning';
12
packages/events/SyntheticEvent.js
-2
@@ -7,8 +7,6 @@
7
8 /* eslint valid-typeof: 0 */
9
10 -'use strict';
11 -
10 import emptyFunction from 'fbjs/lib/emptyFunction';
11 import invariant from 'fbjs/lib/invariant';
12 import warning from 'fbjs/lib/warning';
packages/events/TouchHistoryMath.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 var TouchHistoryMath = {
9 /**
10 * This code is optimized and not intended to look beautiful. This allows
packages/events/accumulate.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import invariant from 'fbjs/lib/invariant';
11
12 /**
packages/events/accumulateInto.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import invariant from 'fbjs/lib/invariant';
11
12 /**
packages/events/forEachAccumulated.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 /**
11 * @param {array} arr an "accumulation" of items which is either an Array or
12 * a single item. Useful when paired with the `accumulate` module. This is a
packages/react-art/src/ReactART.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import React from 'react';
9 import ReactFiberReconciler from 'react-reconciler';
10 import * as ReactDOMFrameScheduling from 'shared/ReactDOMFrameScheduling';
packages/react-call-return/src/ReactCallReturn.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {ReactCall, ReactNodeList, ReactReturn} from 'shared/ReactTypes';
11
12 // The Symbol used to tag the special React types. If there is no native Symbol
packages/react-cs-renderer/src/ReactNativeCS.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {ReactNodeList} from 'shared/ReactTypes';
11 import type {ReactNativeCSType} from './ReactNativeCSTypes';
12
packages/react-cs-renderer/src/ReactNativeCSFeatureFlags.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {FeatureFlags} from 'shared/ReactFeatureFlags';
11
12 var ReactNativeCSFeatureFlags: FeatureFlags = {
packages/react-cs-renderer/src/ReactNativeCSTypes.js
-1
@@ -7,7 +7,6 @@
7 * @flow
8 * @providesModule ReactNativeCSTypes
9 */
10 -'use strict';
10
11 /**
12 * Flat CS renderer bundles are too big for Flow to parse efficiently.
packages/react-dom/src/client/DOMPropertyOperations.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import DOMProperty from '../shared/DOMProperty';
9 import warning from 'fbjs/lib/warning';
10
packages/react-dom/src/client/ReactDOM.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {ReactNodeList} from 'shared/ReactTypes';
11
12 import '../shared/checkReact';
packages/react-dom/src/client/ReactDOMClientInjection.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import EventPluginHub from 'events/EventPluginHub';
9 import EventPluginUtils from 'events/EventPluginUtils';
10
packages/react-dom/src/client/ReactDOMComponentTree.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import {HostComponent, HostText} from 'shared/ReactTypeOfWork';
9 import invariant from 'fbjs/lib/invariant';
10
packages/react-dom/src/client/ReactDOMFB.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import * as ReactFiberTreeReflection from 'shared/ReactFiberTreeReflection';
11 import * as ReactInstanceMap from 'shared/ReactInstanceMap';
12 // TODO: direct imports like some-package/src/* are bad. Fix me.
packages/react-dom/src/client/ReactDOMFiberComponent.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 // TODO: direct imports like some-package/src/* are bad. Fix me.
11 import ReactDebugCurrentFiber
12 from 'react-reconciler/src/ReactDebugCurrentFiber';
packages/react-dom/src/client/ReactDOMFiberInput.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 // TODO: direct imports like some-package/src/* are bad. Fix me.
11 import ReactDebugCurrentFiber
12 from 'react-reconciler/src/ReactDebugCurrentFiber';
packages/react-dom/src/client/ReactDOMFiberOption.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import React from 'react';
11 import warning from 'fbjs/lib/warning';
12
packages/react-dom/src/client/ReactDOMFiberSelect.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 // TODO: direct imports like some-package/src/* are bad. Fix me.
11 import ReactDebugCurrentFiber
12 from 'react-reconciler/src/ReactDebugCurrentFiber';
packages/react-dom/src/client/ReactDOMFiberTextarea.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import invariant from 'fbjs/lib/invariant';
11 import warning from 'fbjs/lib/warning';
12 // TODO: direct imports like some-package/src/* are bad. Fix me.
packages/react-dom/src/client/ReactDOMSelection.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import getNodeForCharacterOffset from './getNodeForCharacterOffset';
9 import getTextContentAccessor from './getTextContentAccessor';
10 import {TEXT_NODE} from '../shared/HTMLNodeType';
packages/react-dom/src/client/ReactInputSelection.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import containsNode from 'fbjs/lib/containsNode';
9 import focusNode from 'fbjs/lib/focusNode';
10 import getActiveElement from 'fbjs/lib/getActiveElement';
packages/react-dom/src/client/getNodeForCharacterOffset.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import {TEXT_NODE} from '../shared/HTMLNodeType';
9
10 /**
packages/react-dom/src/client/getTextContentAccessor.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import ExecutionEnvironment from 'fbjs/lib/ExecutionEnvironment';
9
10 var contentKey = null;
packages/react-dom/src/client/inputValueTracking.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 type ValueTracker = {
11 getValue(): string,
12 setValue(value: string): void,
packages/react-dom/src/client/setInnerHTML.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import {Namespaces} from '../shared/DOMNamespaces';
9 import createMicrosoftUnsafeLocalFunction
10 from '../shared/createMicrosoftUnsafeLocalFunction';
packages/react-dom/src/client/setTextContent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import ExecutionEnvironment from 'fbjs/lib/ExecutionEnvironment';
9
10 import setInnerHTML from './setInnerHTML';
packages/react-dom/src/client/validateDOMNesting.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import emptyFunction from 'fbjs/lib/emptyFunction';
9 import warning from 'fbjs/lib/warning';
10 // TODO: direct imports like some-package/src/* are bad. Fix me.
packages/react-dom/src/events/BeforeInputEventPlugin.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import type {TopLevelTypes} from './BrowserEventConstants';
9
10 import EventPropagators from 'events/EventPropagators';
packages/react-dom/src/events/BrowserEventConstants.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import getVendorPrefixedEventName from './getVendorPrefixedEventName';
9
10 /**
packages/react-dom/src/events/ChangeEventPlugin.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import EventPluginHub from 'events/EventPluginHub';
9 import EventPropagators from 'events/EventPropagators';
10 import ReactControlledComponent from 'events/ReactControlledComponent';
packages/react-dom/src/events/DOMEventPluginOrder.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 /**
9 * Module that is injectable into `EventPluginHub`, that specifies a
10 * deterministic ordering of `EventPlugin`s. A convenient way to reason about
packages/react-dom/src/events/EnterLeaveEventPlugin.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import EventPropagators from 'events/EventPropagators';
9
10 import SyntheticMouseEvent from './SyntheticMouseEvent';
packages/react-dom/src/events/FallbackCompositionState.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import getTextContentAccessor from '../client/getTextContentAccessor';
9
10 /**
packages/react-dom/src/events/ReactBrowserEventEmitter.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import EventPluginRegistry from 'events/EventPluginRegistry';
9 import ReactEventEmitterMixin from 'events/ReactEventEmitterMixin';
10
packages/react-dom/src/events/ReactDOMEventListener.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import ReactGenericBatching from 'events/ReactGenericBatching';
9 import {isFiberMounted} from 'shared/ReactFiberTreeReflection';
10 import {HostRoot} from 'shared/ReactTypeOfWork';
packages/react-dom/src/events/SelectEventPlugin.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import EventPropagators from 'events/EventPropagators';
9 import ExecutionEnvironment from 'fbjs/lib/ExecutionEnvironment';
10 import SyntheticEvent from 'events/SyntheticEvent';
packages/react-dom/src/events/SimpleEventPlugin.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {TopLevelTypes} from './BrowserEventConstants';
11 import type {
12 DispatchConfig,
packages/react-dom/src/events/SyntheticAnimationEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticEvent from 'events/SyntheticEvent';
9
10 /**
packages/react-dom/src/events/SyntheticClipboardEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticEvent from 'events/SyntheticEvent';
9
10 /**
packages/react-dom/src/events/SyntheticCompositionEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticEvent from 'events/SyntheticEvent';
9
10 /**
packages/react-dom/src/events/SyntheticDragEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticMouseEvent from './SyntheticMouseEvent';
9
10 /**
packages/react-dom/src/events/SyntheticFocusEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticUIEvent from './SyntheticUIEvent';
9
10 /**
packages/react-dom/src/events/SyntheticInputEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticEvent from 'events/SyntheticEvent';
9
10 /**
packages/react-dom/src/events/SyntheticKeyboardEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticUIEvent from './SyntheticUIEvent';
9 import getEventCharCode from './getEventCharCode';
10 import getEventKey from './getEventKey';
packages/react-dom/src/events/SyntheticMouseEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticUIEvent from './SyntheticUIEvent';
9 import getEventModifierState from './getEventModifierState';
10
packages/react-dom/src/events/SyntheticTouchEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticUIEvent from './SyntheticUIEvent';
9 import getEventModifierState from './getEventModifierState';
10
packages/react-dom/src/events/SyntheticTransitionEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticEvent from 'events/SyntheticEvent';
9
10 /**
packages/react-dom/src/events/SyntheticUIEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticEvent from 'events/SyntheticEvent';
9
10 /**
packages/react-dom/src/events/SyntheticWheelEvent.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import SyntheticMouseEvent from './SyntheticMouseEvent';
9
10 /**
packages/react-dom/src/events/TapEventPlugin.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import EventPluginUtils from 'events/EventPluginUtils';
11 import EventPropagators from 'events/EventPropagators';
12 import TouchEventUtils from 'fbjs/lib/TouchEventUtils';
packages/react-dom/src/events/getEventCharCode.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 /**
9 * `charCode` represents the actual "character code" and is safe to use with
10 * `String.fromCharCode`. As such, only keys that correspond to printable
packages/react-dom/src/events/getEventKey.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import getEventCharCode from './getEventCharCode';
9
10 /**
packages/react-dom/src/events/getEventModifierState.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 /**
9 * Translation from modifier key to the associated property in the event.
10 * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
packages/react-dom/src/events/getEventTarget.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import {TEXT_NODE} from '../shared/HTMLNodeType';
9
10 /**
packages/react-dom/src/events/getVendorPrefixedEventName.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import ExecutionEnvironment from 'fbjs/lib/ExecutionEnvironment';
9
10 /**
packages/react-dom/src/events/isEventSupported.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import ExecutionEnvironment from 'fbjs/lib/ExecutionEnvironment';
9
10 var useHasFeature;
packages/react-dom/src/server/DOMMarkupOperations.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import DOMProperty from '../shared/DOMProperty';
9 import quoteAttributeValueForBrowser
10 from '../shared/quoteAttributeValueForBrowser';
packages/react-dom/src/server/ReactDOMNodeStreamRenderer.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import {Readable} from 'stream';
9
10 import ReactPartialRenderer from './ReactPartialRenderer';
packages/react-dom/src/server/ReactDOMServerBrowser.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import '../shared/ReactDOMInjection';
9 import ReactVersion from 'shared/ReactVersion';
10 import invariant from 'fbjs/lib/invariant';
packages/react-dom/src/server/ReactDOMServerNode.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import '../shared/ReactDOMInjection';
9 import ReactVersion from 'shared/ReactVersion';
10
packages/react-dom/src/server/ReactDOMStringRenderer.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import ReactPartialRenderer from './ReactPartialRenderer';
9
10 /**
packages/react-dom/src/server/ReactPartialRenderer.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {ReactElement} from 'shared/ReactElementType';
11
12 import React from 'react';
packages/react-dom/src/shared/CSSProperty.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 /**
9 * CSS properties which accept numbers but are not in units of "px".
10 */
packages/react-dom/src/shared/CSSPropertyOperations.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import dangerousStyleValue from './dangerousStyleValue';
9 import hyphenateStyleName from 'fbjs/lib/hyphenateStyleName';
10 import warnValidStyle from './warnValidStyle';
packages/react-dom/src/shared/DOMNamespaces.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
9 const MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
10 const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
packages/react-dom/src/shared/DOMProperty.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import invariant from 'fbjs/lib/invariant';
9
10 // These attributes should be all lowercase to allow for
packages/react-dom/src/shared/HTMLDOMPropertyConfig.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import DOMProperty from './DOMProperty';
9
10 var MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY;
packages/react-dom/src/shared/HTMLNodeType.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 /**
9 * HTML nodeType values that represent the type of the node
10 */
packages/react-dom/src/shared/ReactControlledValuePropTypes.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import checkPropTypes from 'prop-types/checkPropTypes';
9
10 var ReactControlledValuePropTypes = {
packages/react-dom/src/shared/ReactDOMInjection.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import DOMProperty from './DOMProperty';
9 import HTMLDOMPropertyConfig from './HTMLDOMPropertyConfig';
10 import SVGDOMPropertyConfig from './SVGDOMPropertyConfig';
packages/react-dom/src/shared/ReactDOMInvalidARIAHook.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import warning from 'fbjs/lib/warning';
9 import {ReactDebugCurrentFrame} from 'shared/ReactGlobalSharedState';
10
packages/react-dom/src/shared/ReactDOMNullInputValuePropHook.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import {ReactDebugCurrentFrame} from 'shared/ReactGlobalSharedState';
9 import warning from 'fbjs/lib/warning';
10
packages/react-dom/src/shared/ReactDOMUnknownPropertyHook.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import EventPluginRegistry from 'events/EventPluginRegistry';
9 import {ReactDebugCurrentFrame} from 'shared/ReactGlobalSharedState';
10 import warning from 'fbjs/lib/warning';
packages/react-dom/src/shared/SVGDOMPropertyConfig.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import DOMProperty from './DOMProperty';
9
10 var {HAS_STRING_BOOLEAN_VALUE} = DOMProperty.injection;
packages/react-dom/src/shared/assertValidProps.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import invariant from 'fbjs/lib/invariant';
9 import warning from 'fbjs/lib/warning';
10
packages/react-dom/src/shared/createMicrosoftUnsafeLocalFunction.js
-2
@@ -7,8 +7,6 @@
7
8 /* globals MSApp */
9
10 -'use strict';
11 -
10 /**
11 * Create a function which has 'unsafe' privileges (required by windows8 apps)
12 */
packages/react-dom/src/shared/dangerousStyleValue.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import {isUnitlessNumber} from './CSSProperty';
9
10 /**
packages/react-dom/src/shared/escapeTextContentForBrowser.js
-2
@@ -30,8 +30,6 @@
30 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 */
32
33 -'use strict';
34 -
33 // code copied and modified from escape-html
34 /**
35 * Module variables.
packages/react-dom/src/shared/isCustomComponent.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 function isCustomComponent(tagName: string, props: Object) {
11 if (tagName.indexOf('-') === -1) {
12 return typeof props.is === 'string';
packages/react-dom/src/shared/omittedCloseTags.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 // For HTML, certain tags should omit their close tag. We keep a whitelist for
9 // those special-case tags.
10
packages/react-dom/src/shared/quoteAttributeValueForBrowser.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import escapeTextContentForBrowser from './escapeTextContentForBrowser';
9
10 /**
packages/react-dom/src/shared/validAriaProperties.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 var ariaProperties = {
9 'aria-current': 0, // state
10 'aria-details': 0,
packages/react-dom/src/shared/voidElementTags.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import omittedCloseTags from './omittedCloseTags';
9
10 // For HTML, certain tags cannot have children. This has the same purpose as
packages/react-dom/src/shared/warnValidStyle.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import emptyFunction from 'fbjs/lib/emptyFunction';
9 import camelizeStyleName from 'fbjs/lib/camelizeStyleName';
10 import warning from 'fbjs/lib/warning';
packages/react-dom/src/test-utils/ReactTestUtils.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import React from 'react';
9 import ReactDOM from 'react-dom';
10 import {findCurrentFiberUsingSlowPath} from 'shared/ReactFiberTreeReflection';
packages/react-native-renderer/src/NativeMethodsMixin.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 import type {
11 MeasureInWindowOnSuccessCallback,
packages/react-native-renderer/src/NativeMethodsMixinUtils.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 /**
11 * In the future, we should cleanup callbacks by cancelling them instead of
packages/react-native-renderer/src/ReactNativeAttributePayload.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 // Modules provided by RN:
11 import deepDiffer from 'deepDiffer';
packages/react-native-renderer/src/ReactNativeBridgeEventPlugin.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 import type {ReactNativeBaseComponentViewConfig} from './ReactNativeTypes';
11
packages/react-native-renderer/src/ReactNativeComponent.js
-2
@@ -8,8 +8,6 @@
8 * @format
9 */
10
11 -'use strict';
12 -
11 import type {
12 MeasureInWindowOnSuccessCallback,
13 MeasureLayoutOnSuccessCallback,
packages/react-native-renderer/src/ReactNativeComponentTree.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import invariant from 'fbjs/lib/invariant';
9
10 var instanceCache = {};
packages/react-native-renderer/src/ReactNativeEventEmitter.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 import EventPluginHub from 'events/EventPluginHub';
11 import EventPluginRegistry from 'events/EventPluginRegistry';
packages/react-native-renderer/src/ReactNativeEventPluginOrder.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 var ReactNativeEventPluginOrder = [
11 'ResponderEventPlugin',
packages/react-native-renderer/src/ReactNativeFiberErrorDialog.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {CapturedError} from 'react-reconciler/src/ReactFiberScheduler';
11
12 // Module provided by RN:
packages/react-native-renderer/src/ReactNativeFiberHostComponent.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {
11 MeasureInWindowOnSuccessCallback,
12 MeasureLayoutOnSuccessCallback,
packages/react-native-renderer/src/ReactNativeFiberInspector.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 import type {Fiber} from 'react-reconciler/src/ReactFiber';
11
packages/react-native-renderer/src/ReactNativeFiberRenderer.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {ReactNativeBaseComponentViewConfig} from './ReactNativeTypes';
11
12 import ReactFiberReconciler from 'react-reconciler';
packages/react-native-renderer/src/ReactNativeFrameScheduling.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Deadline} from 'react-reconciler';
11
12 const hasNativePerformanceNow =
packages/react-native-renderer/src/ReactNativeGlobalResponderHandler.js
-1
@@ -4,7 +4,6 @@
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7 -'use strict';
7
8 // Module provided by RN:
9 import UIManager from 'UIManager';
packages/react-native-renderer/src/ReactNativeInjection.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 /**
11 * Make sure essential globals are available and are patched correctly. Please don't remove this
packages/react-native-renderer/src/ReactNativePropRegistry.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 var objects = {};
11 var uniqueID = 1;
packages/react-native-renderer/src/ReactNativeRenderer.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {ReactNativeType} from './ReactNativeTypes';
11 import type {ReactNodeList} from 'shared/ReactTypes';
12
packages/react-native-renderer/src/ReactNativeTagHandles.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 import invariant from 'fbjs/lib/invariant';
11
packages/react-native-renderer/src/ReactNativeTypes.js
-1
@@ -7,7 +7,6 @@
7 * @flow
8 * @providesModule ReactNativeTypes
9 */
10 -'use strict';
10
11 export type MeasureOnSuccessCallback = (
12 x: number,
packages/react-native-renderer/src/ReactNativeViewConfigRegistry.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {
11 ReactNativeBaseComponentViewConfig,
12 ViewConfigGetter,
packages/react-native-renderer/src/createReactNativeComponentClass.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {ViewConfigGetter} from './ReactNativeTypes';
11
12 import {register} from './ReactNativeViewConfigRegistry';
packages/react-native-renderer/src/findNodeHandle.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from 'react-reconciler/src/ReactFiber';
11
12 import * as ReactInstanceMap from 'shared/ReactInstanceMap';
packages/react-native-renderer/src/findNumericNodeHandle.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 import findNodeHandle from './findNodeHandle';
11
packages/react-native-renderer/src/takeSnapshot.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 // Module provided by RN:
11 import UIManager from 'UIManager';
packages/react-noop-renderer/src/ReactNoop.js
-2
@@ -14,8 +14,6 @@
14 * environment.
15 */
16
17 -'use strict';
18 -
17 import type {Fiber} from 'react-reconciler/src/ReactFiber';
18 import type {UpdateQueue} from 'react-reconciler/src/ReactFiberUpdateQueue';
19
packages/react-reconciler/src/ReactChildFiber.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {ReactElement} from 'shared/ReactElementType';
11 import type {ReactCall, ReactPortal, ReactReturn} from 'shared/ReactTypes';
12 import type {Fiber} from 'react-reconciler/src/ReactFiber';
packages/react-reconciler/src/ReactDebugCurrentFiber.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import {ReactDebugCurrentFrame} from 'shared/ReactGlobalSharedState';
11 import {
12 getStackAddendumByWorkInProgressFiber,
packages/react-reconciler/src/ReactFiber.js
-2
@@ -6,8 +6,6 @@
6 *
7 */
8
9 -'use strict';
10 -
9 import type {ReactElement, Source} from 'shared/ReactElementType';
10 import type {
11 ReactCall,
packages/react-reconciler/src/ReactFiberBeginWork.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {HostConfig} from 'react-reconciler';
11 import type {ReactCall} from 'shared/ReactTypes';
12 import type {Fiber} from 'react-reconciler/src/ReactFiber';
packages/react-reconciler/src/ReactFiberClassComponent.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from './ReactFiber';
11 import type {ExpirationTime} from './ReactFiberExpirationTime';
12
packages/react-reconciler/src/ReactFiberCommitWork.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {HostConfig} from 'react-reconciler';
11 import type {Fiber} from './ReactFiber';
12
packages/react-reconciler/src/ReactFiberCompleteWork.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {HostConfig} from 'react-reconciler';
11 import type {ReactCall} from 'shared/ReactTypes';
12 import type {Fiber} from './ReactFiber';
packages/react-reconciler/src/ReactFiberContext.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from './ReactFiber';
11 import type {StackCursor} from './ReactFiberStack';
12
packages/react-reconciler/src/ReactFiberDevToolsHook.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from './ReactFiber';
11 import type {FiberRoot} from './ReactFiberRoot';
12
packages/react-reconciler/src/ReactFiberErrorLogger.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {CapturedError} from './ReactFiberScheduler';
11
12 import invariant from 'fbjs/lib/invariant';
packages/react-reconciler/src/ReactFiberExpirationTime.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 // TODO: Use an opaque type once ESLint et al support the syntax
11 export type ExpirationTime = number;
12
packages/react-reconciler/src/ReactFiberHostContext.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {HostConfig} from 'react-reconciler';
11 import type {Fiber} from './ReactFiber';
12 import type {StackCursor} from './ReactFiberStack';
packages/react-reconciler/src/ReactFiberHydrationContext.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {HostConfig} from 'react-reconciler';
11 import type {Fiber} from './ReactFiber';
12
packages/react-reconciler/src/ReactFiberInstrumentation.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 // This lets us hook into Fiber to debug what it's doing.
11 // See https://github.com/facebook/react/pull/8033.
12 // This is not part of the public API, not even for React DevTools.
packages/react-reconciler/src/ReactFiberReconciler.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from './ReactFiber';
11 import type {FiberRoot} from './ReactFiberRoot';
12 import type {ReactNodeList} from 'shared/ReactTypes';
packages/react-reconciler/src/ReactFiberRoot.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from './ReactFiber';
11 import type {ExpirationTime} from './ReactFiberExpirationTime';
12
packages/react-reconciler/src/ReactFiberScheduler.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {HostConfig, Deadline} from 'react-reconciler';
11 import type {Fiber} from './ReactFiber';
12 import type {FiberRoot} from './ReactFiberRoot';
packages/react-reconciler/src/ReactFiberStack.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from './ReactFiber';
11
12 import warning from 'fbjs/lib/warning';
packages/react-reconciler/src/ReactFiberUpdateQueue.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from './ReactFiber';
11 import type {ExpirationTime} from './ReactFiberExpirationTime';
12
packages/react-reconciler/src/ReactPortal.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {ReactNodeList, ReactPortal} from 'shared/ReactTypes';
11
12 // The Symbol used to tag the special React types. If there is no native Symbol
packages/react-reconciler/src/ReactTypeOfInternalContext.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 export type TypeOfInternalContext = number;
11
12 export const NoContext = 0;
packages/react-rt-renderer/index.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 var ReactNativeRT = require('./src/ReactNativeRT');
11
12 // TODO: decide on the top-level export form.
packages/react-rt-renderer/src/ReactNativeRT.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {ReactNativeRTType} from './ReactNativeRTTypes';
11 import type {ReactNodeList} from 'shared/ReactTypes';
12
packages/react-rt-renderer/src/ReactNativeRTComponentTree.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from 'react-reconciler/src/ReactFiber';
11
12 var instanceCache: {[key: number]: Fiber} = {};
packages/react-rt-renderer/src/ReactNativeRTEventEmitter.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 import ReactGenericBatching from 'events/ReactGenericBatching';
11 // Module provided by RN:
packages/react-rt-renderer/src/ReactNativeRTFiberInspector.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 import {
11 findCurrentFiberUsingSlowPath,
packages/react-rt-renderer/src/ReactNativeRTFiberRenderer.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import ReactFiberReconciler from 'react-reconciler';
11 import emptyObject from 'fbjs/lib/emptyObject';
12 import invariant from 'fbjs/lib/invariant';
packages/react-rt-renderer/src/ReactNativeRTTagHandles.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 import invariant from 'fbjs/lib/invariant';
11
packages/react-rt-renderer/src/ReactNativeRTTypes.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 /**
11 * Flat RT renderer bundles are too big for Flow to parse efficiently.
packages/react-test-renderer/src/ReactShallowRenderer.js
-2
@@ -6,8 +6,6 @@
6 *
7 */
8
9 -'use strict';
10 -
9 import React from 'react';
10 import describeComponentFrame from 'shared/describeComponentFrame';
11 import getComponentName from 'shared/getComponentName';
packages/react-test-renderer/src/ReactTestRenderer.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from 'react-reconciler/src/ReactFiber';
11 import type {FiberRoot} from 'react-reconciler/src/ReactFiberRoot';
12
packages/react/src/React.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import assign from 'object-assign';
9 import ReactVersion from 'shared/ReactVersion';
10 import ReactFeatureFlags from 'shared/ReactFeatureFlags';
packages/react/src/ReactBaseClasses.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import emptyObject from 'fbjs/lib/emptyObject';
9 import invariant from 'fbjs/lib/invariant';
10 import lowPriorityWarning from 'shared/lowPriorityWarning';
packages/react/src/ReactChildren.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import emptyFunction from 'fbjs/lib/emptyFunction';
9 import invariant from 'fbjs/lib/invariant';
10 import warning from 'fbjs/lib/warning';
packages/react/src/ReactDebugCurrentFrame.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 const ReactDebugCurrentFrame = {};
11
12 if (__DEV__) {
packages/react/src/ReactElement.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import warning from 'fbjs/lib/warning';
9
10 import ReactCurrentOwner from './ReactCurrentOwner';
packages/react/src/ReactElementValidator.js
-2
@@ -12,8 +12,6 @@
12 * that support it.
13 */
14
15 -'use strict';
16 -
15 import lowPriorityWarning from 'shared/lowPriorityWarning';
16 import describeComponentFrame from 'shared/describeComponentFrame';
17 import getComponentName from 'shared/getComponentName';
packages/react/src/ReactNoopUpdateQueue.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import warning from 'fbjs/lib/warning';
9
10 var didWarnStateUpdateForUnmountedComponent = {};
packages/shared/ReactDOMFrameScheduling.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 // This is a built-in polyfill for requestIdleCallback. It works by scheduling
11 // a requestAnimationFrame, storing the time for the start of the frame, then
12 // scheduling a postMessage which gets scheduled after paint. Within the
packages/shared/ReactElementType.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 export type Source = {
11 fileName: string,
12 lineNumber: number,
packages/shared/ReactErrorUtils.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import invariant from 'fbjs/lib/invariant';
11
12 const ReactErrorUtils = {
packages/shared/ReactFeatureFlags.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 export type FeatureFlags = {|
11 enableAsyncSubtreeAPI: boolean,
12 enableAsyncSchedulingByDefaultInReactDOM: boolean,
packages/shared/ReactFiberComponentTreeHook.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from 'react-reconciler/src/ReactFiber';
11
12 import {
packages/shared/ReactFiberTreeReflection.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from 'react-reconciler/src/ReactFiber';
11
12 import invariant from 'fbjs/lib/invariant';
packages/shared/ReactGlobalSharedState.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import React from 'react';
9
10 var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
packages/shared/ReactInstanceMap.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 /**
9 * `ReactInstanceMap` maintains a mapping from a public facing stateful
10 * instance (key) and the internal representation (value). This allows public
packages/shared/ReactTreeTraversal.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 import {HostComponent} from './ReactTypeOfWork';
9
10 function getParent(inst) {
packages/shared/ReactTypeOfSideEffect.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 export type TypeOfSideEffect = number;
11
12 // Don't change these two values:
packages/shared/ReactTypeOfWork.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 export type TypeOfWork = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
11
12 export const IndeterminateComponent = 0; // Before we know whether it is functional or class
packages/shared/ReactTypes.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 export type ReactNode =
11 | React$Element<any>
12 | ReactCall
packages/shared/describeComponentFrame.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 export default function(
11 name: null | string,
12 source: any,
packages/shared/getComponentName.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 import type {Fiber} from 'react-reconciler/src/ReactFiber';
11
12 function getComponentName(fiber: Fiber): string | null {
packages/shared/isTextInputElement.js
-2
@@ -7,8 +7,6 @@
7 * @flow
8 */
9
10 -'use strict';
11 -
10 /**
11 * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
12 */
packages/shared/lowPriorityWarning.js
-2
@@ -5,8 +5,6 @@
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 -'use strict';
9 -
8 /**
9 * Forked from fbjs/warning:
10 * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
packages/shared/reactProdInvariant.js
-1
@@ -6,7 +6,6 @@
6 *
7 * @flow
8 */
9 -'use strict';
9
10 /**
11 * WARNING: DO NOT manually require this module.
packages/shared/validateCallback.js deleted
-23
@@ -1,23 +0,0 @@
1 -/**
2 - * Copyright (c) 2013-present, Facebook, Inc.
3 - *
4 - * This source code is licensed under the MIT license found in the
5 - * LICENSE file in the root directory of this source tree.
6 - *
7 - * @flow
8 - */
9 -
10 -'use strict';
11 -
12 -const invariant = require('fbjs/lib/invariant');
13 -
14 -function validateCallback(callback: ?Function) {
15 - invariant(
16 - !callback || typeof callback === 'function',
17 - 'Invalid argument passed as callback. Expected a function. Instead ' +
18 - 'received: %s',
19 - callback,
20 - );
21 -}
22 -
23 -export default validateCallback;