@samitouri / QOS-React / commits / c52a2b9ab0

Fixed all eslint warnings (#7230)

Usman committed Jul 11, 2016 at 17:47 UTC c52a2b9ab0d86079f0b24163cc74eac321906fe1
7 files changed +30 -8
src/renderers/dom/fiber/ReactDOMFiber.js
+6 -1
@@ -55,7 +55,12 @@ var DOMRenderer = ReactFiberReconciler({
55 return domElement;
56 },
57
58 - prepareUpdate(domElement : Instance, oldProps : Props, newProps : Props, children : HostChildren<Instance>) : boolean {
58 + prepareUpdate(
59 + domElement : Instance,
60 + oldProps : Props,
61 + newProps : Props,
62 + children : HostChildren<Instance>
63 + ) : boolean {
64 return true;
65 },
66
src/renderers/native/NativeMethodsMixin.js
+1 -1
@@ -217,6 +217,6 @@ function mountSafeCallback(
217 }
218 return callback.apply(context, arguments);
219 };
220 -};
220 +}
221
222 module.exports = NativeMethodsMixin;
src/renderers/noop/ReactNoop.js
+4 -1
@@ -169,7 +169,10 @@ var ReactNoop = {
169 }
170
171 function logFiber(fiber : Fiber, depth) {
172 - console.log(' '.repeat(depth) + '- ' + (fiber.type ? fiber.type.name || fiber.type : '[root]'), '[' + fiber.pendingWorkPriority + (fiber.pendingProps ? '*' : '') + ']');
172 + console.log(
173 + ' '.repeat(depth) + '- ' + (fiber.type ? fiber.type.name || fiber.type : '[root]'),
174 + '[' + fiber.pendingWorkPriority + (fiber.pendingProps ? '*' : '') + ']'
175 + );
176 if (fiber.child) {
177 logFiber(fiber.child, depth + 1);
178 }
src/renderers/shared/devtools/__tests__/ReactComponentTreeDevtool-test.js
+1 -1
@@ -1848,5 +1848,5 @@ describe('ReactComponentTreeDevtool', () => {
1848 }
1849 ReactDOM.render(<Foo />, el);
1850 });
1851 - })
1851 + });
1852 });
src/renderers/shared/devtools/__tests__/ReactHostOperationHistoryDevtool-test.js
+1 -1
@@ -34,7 +34,7 @@ describe('ReactHostOperationHistoryDevtool', () => {
34
35 afterEach(() => {
36 ReactPerf.stop();
37 - })
37 + });
38
39 function assertHistoryMatches(expectedHistory) {
40 var actualHistory = ReactHostOperationHistoryDevtool.getHistory();
src/renderers/shared/fiber/ReactChildFiber.js
+13 -2
@@ -29,7 +29,13 @@ var {
29 var ReactFiber = require('ReactFiber');
30 var ReactReifiedYield = require('ReactReifiedYield');
31
32 -function createSubsequentChild(returnFiber : Fiber, existingChild : ?Fiber, previousSibling : Fiber, newChildren, priority : PriorityLevel) : Fiber {
32 +function createSubsequentChild(
33 + returnFiber : Fiber,
34 + existingChild : ?Fiber,
35 + previousSibling : Fiber,
36 + newChildren,
37 + priority : PriorityLevel
38 +) : Fiber {
39 if (typeof newChildren !== 'object' || newChildren === null) {
40 return previousSibling;
41 }
@@ -163,6 +169,11 @@ function createFirstChild(returnFiber, existingChild, newChildren, priority) {
169
170 // TODO: This API won't work because we'll need to transfer the side-effects of
171 // unmounting children to the returnFiber.
166 -exports.reconcileChildFibers = function(returnFiber : Fiber, currentFirstChild : ?Fiber, newChildren : ReactNodeList, priority : PriorityLevel) : ?Fiber {
172 +exports.reconcileChildFibers = function(
173 + returnFiber : Fiber,
174 + currentFirstChild : ?Fiber,
175 + newChildren : ReactNodeList,
176 + priority : PriorityLevel
177 +) : ?Fiber {
178 return createFirstChild(returnFiber, currentFirstChild, newChildren, priority);
179 };
src/renderers/shared/fiber/ReactFiberBeginWork.js
+4 -1
@@ -56,7 +56,10 @@ module.exports = function<T, P, I, C>(config : HostConfig<T, P, I, C>) {
56 }
57
58 function updateHostComponent(current, workInProgress) {
59 - console.log('host component', workInProgress.type, typeof workInProgress.pendingProps.children === 'string' ? workInProgress.pendingProps.children : '');
59 + console.log(
60 + 'host component', workInProgress.type,
61 + typeof workInProgress.pendingProps.children === 'string' ? workInProgress.pendingProps.children : ''
62 + );
63
64 var nextChildren = workInProgress.pendingProps.children;
65