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 коммит произвёл Facebook Github Bot
Родитель ebb42ee1b6
Коммит d3e1a21399
4 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -614,7 +614,7 @@ const ScrollView = createReactClass({
_handleScroll: function(e: Object) {
if (__DEV__) {
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 ' +
'`scrollEventThrottle`. You will only receive one event. ' +
'Using `16` you get all the events but be aware that it may ' +

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

@ -14,7 +14,7 @@
* Intentional info-level logging for clear separation from ad-hoc console debug logging.
*/
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;