Skip to content

Commit 739baa9

Browse files
committed
Fix new lint errors
We'll get to lint parity soon and then not need to do this.
1 parent b97bb21 commit 739baa9

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

src/browser/ui/React.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* @providesModule React
1010
*/
1111

12+
/* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/
13+
1214
"use strict";
1315

1416
var DOMPropertyOperations = require('DOMPropertyOperations');

src/browser/ui/ReactMount.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ var ReactMount = {
764764
'methods are impure. React cannot handle this case due to ' +
765765
'cross-browser quirks by rendering at the document root. You ' +
766766
'should look for environment dependent code in your components ' +
767-
'and ensure the props are the same client and server side:\n' +
767+
'and ensure the props are the same client and server side:\n%s',
768768
difference
769769
);
770770

src/core/ReactCompositeComponent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,8 @@ var ReactCompositeComponentMixin = assign({},
611611
displayName
612612
);
613613
} else {
614-
for (key in parentKeys) {
615-
var key = parentKeys[key];
614+
for (var i = 0; i < parentKeys.length; i++) {
615+
var key = parentKeys[i];
616616
warning(
617617
ownerBasedContext[key] === parentBasedContext[key],
618618
'owner-based and parent-based contexts differ ' +

src/core/__tests__/ReactCompositeComponent-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ describe('ReactCompositeComponent', function() {
10601060
});
10611061

10621062
var component = React.withContext({foo: 'noise'}, function() {
1063-
return <Component />
1063+
return <Component />;
10641064
});
10651065

10661066
ReactTestUtils.renderIntoDocument(<Parent>{component}</Parent>);

src/test/ReactTestUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ ReactShallowRenderer.prototype.getRenderOutput = function() {
321321

322322
var ShallowComponentWrapper = function(inst) {
323323
this._instance = inst;
324-
}
324+
};
325325
assign(
326326
ShallowComponentWrapper.prototype,
327327
ReactCompositeComponent.ShallowMixin

0 commit comments

Comments
 (0)