Fix new lint errors
We'll get to lint parity soon and then not need to do this.
Paul O’Shannessy committed
Dec 8, 2014 at 12:06 UTC
739baa90927d06e7e2267c65b1221931a20784a4
5 files changed
+7
-5
src/browser/ui/React.js
+2
@@ -9,6 +9,8 @@
9
* @providesModule React
10
*/
11
12
+/* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/
13
+
14
"use strict";
15
16
var DOMPropertyOperations = require('DOMPropertyOperations');
src/browser/ui/ReactMount.js
+1
-1
@@ -764,7 +764,7 @@ var ReactMount = {
764
'methods are impure. React cannot handle this case due to ' +
765
'cross-browser quirks by rendering at the document root. You ' +
766
'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',
768
difference
769
);
770
src/core/ReactCompositeComponent.js
+2
-2
@@ -611,8 +611,8 @@ var ReactCompositeComponentMixin = assign({},
611
displayName
612
);
613
} 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];
616
warning(
617
ownerBasedContext[key] === parentBasedContext[key],
618
'owner-based and parent-based contexts differ ' +
src/core/__tests__/ReactCompositeComponent-test.js
+1
-1
@@ -1060,7 +1060,7 @@ describe('ReactCompositeComponent', function() {
1060
});
1061
1062
var component = React.withContext({foo: 'noise'}, function() {
1063
- return <Component />
1063
+ return <Component />;
1064
});
1065
1066
ReactTestUtils.renderIntoDocument(<Parent>{component}</Parent>);
src/test/ReactTestUtils.js
+1
-1
@@ -321,7 +321,7 @@ ReactShallowRenderer.prototype.getRenderOutput = function() {
321
322
var ShallowComponentWrapper = function(inst) {
323
this._instance = inst;
324
-}
324
+};
325
assign(
326
ShallowComponentWrapper.prototype,
327
ReactCompositeComponent.ShallowMixin