@samitouri / QOS-React-2 / commits / d5a4d29532

Fix some linty things

Ben Alpert committed Apr 28, 2014 at 23:30 UTC d5a4d29532bbb7eea91b1ac806ecdfd68a795727
3 files changed +6 -5
src/addons/link/ReactLink.js
+3 -3
@@ -63,9 +63,9 @@ function ReactLink(value, requestChange) {
63 */
64 function createLinkTypeChecker(linkType) {
65 var shapes = {
66 - value: typeof linkType === 'undefined'
67 - ? React.PropTypes.any.isRequired
68 - : linkType.isRequired,
66 + value: typeof linkType === 'undefined' ?
67 + React.PropTypes.any.isRequired :
68 + linkType.isRequired,
69 requestChange: React.PropTypes.func.isRequired
70 };
71 return React.PropTypes.shape(shapes);
src/event/EventPluginHub.js
-1
@@ -20,7 +20,6 @@
20
21 var EventPluginRegistry = require('EventPluginRegistry');
22 var EventPluginUtils = require('EventPluginUtils');
23 -var ExecutionEnvironment = require('ExecutionEnvironment');
23
24 var accumulate = require('accumulate');
25 var forEachAccumulated = require('forEachAccumulated');
src/test/reactComponentExpect.js
+3 -1
@@ -17,6 +17,8 @@
17 * @nolint
18 */
19
20 +"use strict";
21 +
22 var ReactTestUtils = require('ReactTestUtils');
23
24 var mergeInto = require('mergeInto');
@@ -73,7 +75,7 @@ mergeInto(reactComponentExpect.prototype, {
75 // change soon.
76 this.toBeDOMComponent();
77 var renderedChildren = this.instance()._renderedChildren || {};
76 - for (name in renderedChildren) {
78 + for (var name in renderedChildren) {
79 if (!renderedChildren.hasOwnProperty(name)) {
80 continue;
81 }