@samitouri / QOS-React-2 / commits / 7e5eb4b2b2

Add indent lint rule, fix code

Paul O’Shannessy committed Feb 12, 2015 at 14:29 UTC 7e5eb4b2b2c2aa503d0db4ec257cbb7bf071783c
4 files changed +5 -4
src/.eslintrc
+1
@@ -26,6 +26,7 @@ rules:
26 no-unused-vars: [2, args: none]
27 quotes: [2, 'single']
28 space-before-blocks: 2
29 + indent: [2, 2, indentSwitchCase: true]
30
31 # WARNINGS
32 # This is the only one that's hard to track since we don't lint just changes.
src/browser/eventPlugins/DefaultEventPluginOrder.js
+1 -1
@@ -11,7 +11,7 @@
11
12 'use strict';
13
14 - var keyOf = require('keyOf');
14 +var keyOf = require('keyOf');
15
16 /**
17 * Module that is injectable into `EventPluginHub`, that specifies a
src/browser/ui/ReactDOMIDOperations.js
+2 -2
@@ -132,8 +132,8 @@ var ReactDOMIDOperations = {
132 * @see {Danger.dangerouslyReplaceNodeWithMarkup}
133 */
134 dangerouslyReplaceNodeWithMarkupByID: function(id, markup) {
135 - var node = ReactMount.getNode(id);
136 - DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup(node, markup);
135 + var node = ReactMount.getNode(id);
136 + DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup(node, markup);
137 },
138
139 /**
src/core/ReactCompositeComponent.js
+1 -1
@@ -202,7 +202,7 @@ var ReactCompositeComponentMixin = {
202 ReactLifeCycle.currentlyMountingInstance = this;
203 try {
204 if (inst.componentWillMount) {
205 - inst.componentWillMount();
205 + inst.componentWillMount();
206 // When mounting, calls to `setState` by `componentWillMount` will set
207 // `this._pendingStateQueue` without triggering a re-render.
208 if (this._pendingStateQueue) {