From ba5d4bf2c120516f7b87c221808880911069d019 Mon Sep 17 00:00:00 2001 From: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com> Date: Thu, 23 Feb 2023 14:37:40 +0100 Subject: [PATCH] chore: Fix ES Lint import rule (#9738) --- packages/puppeteer-core/src/common/Connection.ts | 13 ++++++------- .../puppeteer-core/src/common/bidi/Connection.ts | 11 +++++------ website/src/theme/SearchBar/index.js | 3 +-- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/packages/puppeteer-core/src/common/Connection.ts b/packages/puppeteer-core/src/common/Connection.ts index 06356c98d6c..c9b79a314c6 100644 --- a/packages/puppeteer-core/src/common/Connection.ts +++ b/packages/puppeteer-core/src/common/Connection.ts @@ -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 */ diff --git a/packages/puppeteer-core/src/common/bidi/Connection.ts b/packages/puppeteer-core/src/common/bidi/Connection.ts index 03a76469fe6..044fe0fa0e8 100644 --- a/packages/puppeteer-core/src/common/bidi/Connection.ts +++ b/packages/puppeteer-core/src/common/bidi/Connection.ts @@ -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 diff --git a/website/src/theme/SearchBar/index.js b/website/src/theme/SearchBar/index.js index f1673620ed9..4bfb7a9b275 100644 --- a/website/src/theme/SearchBar/index.js +++ b/website/src/theme/SearchBar/index.js @@ -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';