mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Add space-before-blocks rules, fix code
This commit is contained in:
1 parent
a411f3e0dc
commit
af8ad59a5b
2 files changed
+2
-1
No files matched your search
@@ -25,6 +25,7 @@ rules:
|
||||
consistent-return: 2
|
||||
no-unused-vars: [2, args: none]
|
||||
quotes: [2, 'single']
|
||||
space-before-blocks: 2
|
||||
|
||||
# WARNINGS
|
||||
# This is the only one that's hard to track since we don't lint just changes.
|
||||
|
||||
@@ -328,7 +328,7 @@ var ReactBrowserEventEmitter = assign({}, ReactEventEmitterMixin, {
|
||||
*
|
||||
* @see http://www.quirksmode.org/dom/events/scroll.html
|
||||
*/
|
||||
ensureScrollValueMonitoring: function(){
|
||||
ensureScrollValueMonitoring: function() {
|
||||
if (!isMonitoringScrollValue) {
|
||||
var refresh = ViewportMetrics.refreshScrollValues;
|
||||
ReactBrowserEventEmitter.ReactEventListener.monitorScrollValue(refresh);
|
||||
|
||||
Reference in new issue
Block a user