mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 17:57:36 +08:00
Also update the PRESUBMIT linter configuration to make sure it actually runs the linter when updating ESLint. Otherwise, it would not properly do the full linter check. R=jacktfranklin@chromium.org DISABLE_THIRD_PARTY_CHECK=Update ESLint Bug: 1068145 Change-Id: Ibf2de156366dc64c90ee1aced5537d2038e7a268 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2137384 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
31 lines
528 B
JavaScript
31 lines
528 B
JavaScript
/**
|
|
* @fileoverview Handle logging for ESLint
|
|
* @author Gyandeep Singh
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
/* eslint no-console: "off" */
|
|
|
|
/* istanbul ignore next */
|
|
module.exports = {
|
|
|
|
/**
|
|
* Cover for console.log
|
|
* @param {...any} args The elements to log.
|
|
* @returns {void}
|
|
*/
|
|
info(...args) {
|
|
console.log(...args);
|
|
},
|
|
|
|
/**
|
|
* Cover for console.error
|
|
* @param {...any} args The elements to log.
|
|
* @returns {void}
|
|
*/
|
|
error(...args) {
|
|
console.error(...args);
|
|
}
|
|
};
|