Change all calls to no-console from no-console-disallow

Reviewed By: TheSavior

Differential Revision: D5944700

fbshipit-source-id: cdd78d1b32fa98d8a792a39ccc3cb37241ab4366
This commit is contained in:
Matt Bruce 2017-09-29 16:31:47 -07:00 committed by Facebook Github Bot
parent ebb42ee1b6
commit d3e1a21399
4 changed files with 5 additions and 5 deletions

View File

@ -614,7 +614,7 @@ const ScrollView = createReactClass({
_handleScroll: function(e: Object) { _handleScroll: function(e: Object) {
if (__DEV__) { if (__DEV__) {
if (this.props.onScroll && this.props.scrollEventThrottle == null && Platform.OS === 'ios') { if (this.props.onScroll && this.props.scrollEventThrottle == null && Platform.OS === 'ios') {
console.log( // eslint-disable-line no-console-disallow console.log( // eslint-disable-line no-console
'You specified `onScroll` on a <ScrollView> but not ' + 'You specified `onScroll` on a <ScrollView> but not ' +
'`scrollEventThrottle`. You will only receive one event. ' + '`scrollEventThrottle`. You will only receive one event. ' +
'Using `16` you get all the events but be aware that it may ' + 'Using `16` you get all the events but be aware that it may ' +

View File

@ -105,9 +105,9 @@ if (!global.__fbDisableExceptionsManager) {
try { try {
ExceptionsManager.handleException(e, isFatal); ExceptionsManager.handleException(e, isFatal);
} catch (ee) { } catch (ee) {
/* eslint-disable no-console-disallow */ /* eslint-disable no-console */
console.log('Failed to print error: ', ee.message); console.log('Failed to print error: ', ee.message);
/* eslint-enable no-console-disallow */ /* eslint-enable no-console */
throw e; throw e;
} }
}; };

View File

@ -11,7 +11,7 @@
* @format * @format
*/ */
/* eslint-disable no-console-disallow */ /* eslint-disable no-console */
'use strict'; 'use strict';

View File

@ -14,7 +14,7 @@
* Intentional info-level logging for clear separation from ad-hoc console debug logging. * Intentional info-level logging for clear separation from ad-hoc console debug logging.
*/ */
function infoLog(...args) { function infoLog(...args) {
return console.log(...args); // eslint-disable-line no-console-disallow return console.log(...args); // eslint-disable-line no-console
} }
module.exports = infoLog; module.exports = infoLog;