chore: use @typescript-eslint/consistent-type-imports (#10913)

This commit is contained in:
jrandolf
2023-09-15 13:00:20 +02:00
committed by GitHub
parent e8640fff16
commit c949656a43
155 changed files with 707 additions and 612 deletions

View File

@@ -1,7 +1,11 @@
// eslint-disable-next-line no-restricted-imports
import {EventEmitter as NodeEventEmitter} from 'node:events';
import {CommonEventEmitter, EventEmitter, EventType} from 'puppeteer';
import {
type CommonEventEmitter,
type EventEmitter,
type EventType,
} from 'puppeteer';
import {expectAssignable} from 'tsd';
declare const emitter: EventEmitter<Record<EventType, any>>;

View File

@@ -1,4 +1,4 @@
import {ElementHandle} from 'puppeteer';
import {type ElementHandle} from 'puppeteer';
import {expectNotType, expectType} from 'tsd';
declare const handle: ElementHandle;

View File

@@ -1,4 +1,4 @@
import {ElementHandle, JSHandle} from 'puppeteer';
import {type ElementHandle, type JSHandle} from 'puppeteer';
import {expectNotAssignable, expectNotType, expectType} from 'tsd';
declare const handle: JSHandle;

View File

@@ -1,8 +1,8 @@
import puppeteer, {
connect,
defaultArgs,
executablePath,
launch,
type connect,
type defaultArgs,
type executablePath,
type launch,
} from 'puppeteer';
import {expectType} from 'tsd';