chore: Fix ES Lint import rule (#9738)

This commit is contained in:
Nikolay Vitkov 2023-02-23 14:37:40 +01:00 committed by GitHub
parent 37eb0f2a19
commit ba5d4bf2c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 15 deletions

View File

@ -14,20 +14,19 @@
* limitations under the License.
*/
/* eslint-disable import/order */
import {assert} from '../util/assert.js';
import {debug} from './Debug.js';
const debugProtocolSend = debug('puppeteer:protocol:SEND ►');
const debugProtocolReceive = debug('puppeteer:protocol:RECV ◀');
import {Protocol} from 'devtools-protocol';
import {ProtocolMapping} from 'devtools-protocol/types/protocol-mapping.js';
import {assert} from '../util/assert.js';
import {ConnectionTransport} from './ConnectionTransport.js';
import {debug} from './Debug.js';
import {ProtocolError} from './Errors.js';
import {EventEmitter} from './EventEmitter.js';
const debugProtocolSend = debug('puppeteer:protocol:SEND ►');
const debugProtocolReceive = debug('puppeteer:protocol:RECV ◀');
/**
* @public
*/

View File

@ -14,17 +14,16 @@
* limitations under the License.
*/
/* eslint-disable import/order */
import {debug} from '../Debug.js';
const debugProtocolSend = debug('puppeteer:webDriverBiDi:SEND ►');
const debugProtocolReceive = debug('puppeteer:webDriverBiDi:RECV ◀');
import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
import {ConnectionCallback} from '../Connection.js';
import {ConnectionTransport} from '../ConnectionTransport.js';
import {debug} from '../Debug.js';
import {ProtocolError} from '../Errors.js';
import {EventEmitter} from '../EventEmitter.js';
import {ConnectionCallback} from '../Connection.js';
import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
const debugProtocolSend = debug('puppeteer:webDriverBiDi:SEND ►');
const debugProtocolReceive = debug('puppeteer:webDriverBiDi:RECV ◀');
/**
* @internal

View File

@ -1,4 +1,3 @@
/* eslint-disable import/order */
import {DocSearchButton, useDocSearchKeyboardEvents} from '@docsearch/react';
import Head from '@docusaurus/Head';
import Link from '@docusaurus/Link';
@ -9,9 +8,9 @@ import {useSearchPage} from '@docusaurus/theme-common/internal';
import Translate from '@docusaurus/Translate';
import {useBaseUrlUtils} from '@docusaurus/useBaseUrl';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import translations from '@theme/SearchTranslations';
import React, {useState, useRef, useCallback, useMemo} from 'react';
import {createPortal} from 'react-dom';
import translations from '@theme/SearchTranslations';
// eslint-disable-next-line import/extensions
import {tagToCounter} from '../SearchMetadata';