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

Add space-before-blocks rules, fix code

Paul O’Shannessy committed Feb 12, 2015 at 14:28 UTC af8ad59a5b5cef224c1357df9a89a5d35eecef4c
2 files changed +2 -1
src/.eslintrc
+1
@@ -25,6 +25,7 @@ rules:
25 consistent-return: 2
26 no-unused-vars: [2, args: none]
27 quotes: [2, 'single']
28 + space-before-blocks: 2
29
30 # WARNINGS
31 # This is the only one that's hard to track since we don't lint just changes.
src/browser/ReactBrowserEventEmitter.js
+1 -1
@@ -328,7 +328,7 @@ var ReactBrowserEventEmitter = assign({}, ReactEventEmitterMixin, {
328 *
329 * @see http://www.quirksmode.org/dom/events/scroll.html
330 */
331 - ensureScrollValueMonitoring: function(){
331 + ensureScrollValueMonitoring: function() {
332 if (!isMonitoringScrollValue) {
333 var refresh = ViewportMetrics.refreshScrollValues;
334 ReactBrowserEventEmitter.ReactEventListener.monitorScrollValue(refresh);