Add no-console eslint rule (#1890)

* Add no-console eslint rule

* Remove unused test
This commit is contained in:
Charles Bochet
2023-10-05 21:16:02 +02:00
committed by GitHub
parent 922f8eca0e
commit 07450df1a1
24 changed files with 69 additions and 212 deletions

View File

@ -1,6 +1,8 @@
import { Profiler } from 'react';
import { Interaction } from 'scheduler/tracing';
import { logDebug } from '~/utils/logDebug';
type OwnProps = {
id: string;
children: React.ReactNode;
@ -16,7 +18,7 @@ export const TimingProfiler = ({ id, children }: OwnProps) => {
commitTime: number,
interactions: Set<Interaction>,
) => {
console.debug(
logDebug(
'TimingProfiler',
JSON.stringify(
{