Add indent lint rule, fix code

This commit is contained in:
Paul O’Shannessy
2015-02-12 14:29:43 -08:00
parent 52b32d83d0
commit 7e5eb4b2b2
4 changed files with 5 additions and 4 deletions
+1
View File
@@ -26,6 +26,7 @@ rules:
no-unused-vars: [2, args: none]
quotes: [2, 'single']
space-before-blocks: 2
indent: [2, 2, indentSwitchCase: true]
# WARNINGS
# This is the only one that's hard to track since we don't lint just changes.
@@ -11,7 +11,7 @@
'use strict';
var keyOf = require('keyOf');
var keyOf = require('keyOf');
/**
* Module that is injectable into `EventPluginHub`, that specifies a
+2 -2
View File
@@ -132,8 +132,8 @@ var ReactDOMIDOperations = {
* @see {Danger.dangerouslyReplaceNodeWithMarkup}
*/
dangerouslyReplaceNodeWithMarkupByID: function(id, markup) {
var node = ReactMount.getNode(id);
DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup(node, markup);
var node = ReactMount.getNode(id);
DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup(node, markup);
},
/**
+1 -1
View File
@@ -202,7 +202,7 @@ var ReactCompositeComponentMixin = {
ReactLifeCycle.currentlyMountingInstance = this;
try {
if (inst.componentWillMount) {
inst.componentWillMount();
inst.componentWillMount();
// When mounting, calls to `setState` by `componentWillMount` will set
// `this._pendingStateQueue` without triggering a re-render.
if (this._pendingStateQueue) {