Skip to content

Commit ea16e55

Browse files
authored
fix(lint): import errors (#1649)
1 parent a9be3c5 commit ea16e55

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

src/chromium/crBrowser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { readProtocolStream } from './crProtocolHelper';
2929
import { Events } from './events';
3030
import { Protocol } from './protocol';
3131
import { CRExecutionContext } from './crExecutionContext';
32-
import type { BrowserServer } from '../server/browserServer';
32+
import { BrowserServer } from '../server/browserServer';
3333

3434
export class CRBrowser extends BrowserBase {
3535
readonly _connection: CRConnection;

src/firefox/ffBrowser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { ConnectionEvents, FFConnection } from './ffConnection';
2727
import { headersArray } from './ffNetworkManager';
2828
import { FFPage } from './ffPage';
2929
import { Protocol } from './protocol';
30-
import type { BrowserServer } from '../server/browserServer';
30+
import { BrowserServer } from '../server/browserServer';
3131

3232
export class FFBrowser extends BrowserBase {
3333
_connection: FFConnection;

src/webkit/wkBrowser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import * as types from '../types';
2626
import { Protocol } from './protocol';
2727
import { kPageProxyMessageReceived, PageProxyMessageReceivedPayload, WKConnection, WKSession } from './wkConnection';
2828
import { WKPage } from './wkPage';
29-
import type { BrowserServer } from '../server/browserServer';
29+
import { BrowserServer } from '../server/browserServer';
3030

3131
const DEFAULT_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15';
3232

utils/doclint/check_public_api/JSBuilder.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,6 @@ function checkSources(sources) {
107107
}
108108
if (fileName.endsWith('/api.ts') && ts.isExportSpecifier(node))
109109
apiClassNames.add(expandPrefix((node.propertyName || node.name).text));
110-
if (!fileName.includes('src/server/')) {
111-
// Only relative imports.
112-
if (ts.isImportDeclaration(node) && ts.isStringLiteral(node.moduleSpecifier)) {
113-
const module = node.moduleSpecifier.text;
114-
const isServerDependency = path.resolve(path.dirname(fileName), module).includes('src/server');
115-
if (isServerDependency && !node.importClause.isTypeOnly) {
116-
const lac = ts.getLineAndCharacterOfPosition(node.getSourceFile(), node.moduleSpecifier.pos);
117-
errors.push(`Disallowed import "${module}" at ${node.getSourceFile().fileName}:${lac.line + 1}`);
118-
}
119-
}
120-
}
121110
ts.forEachChild(node, visit);
122111
}
123112

0 commit comments

Comments
 (0)