MM-52624/MM-57094 Update ESLint and our ESLint plugin (#26398)
* Update ESLint and plugins * Move most channels-specific ESLint configuration into ESLint plugin * Add ESLint to types and client packages * Add ESLint to components package
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
67f815e373
Коммит
4d03becdd1
@@ -4,7 +4,7 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import Client4, {ClientError, HEADER_X_VERSION_ID} from './client4';
|
||||
import {TelemetryHandler} from './telemetry';
|
||||
import type {TelemetryHandler} from './telemetry';
|
||||
|
||||
describe('Client4', () => {
|
||||
beforeAll(() => {
|
||||
|
||||
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
@@ -2,7 +2,6 @@
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import Client4 from './client4';
|
||||
|
||||
import {cleanUrlForLogging} from './errors';
|
||||
|
||||
describe('cleanUrlForLogging', () => {
|
||||
|
||||
@@ -189,16 +189,16 @@ export default class WebSocketClient {
|
||||
console.log('long timeout, or server restart, or sequence number is not found.'); //eslint-disable-line no-console
|
||||
|
||||
this.missedEventCallback?.();
|
||||
|
||||
for (const listener of this.missedMessageListeners) {
|
||||
|
||||
for (const listener of this.missedMessageListeners) {
|
||||
try {
|
||||
listener();
|
||||
} catch (e) {
|
||||
console.log(`missed message listener "${listener.name}" failed: ${e}`); // eslint-disable-line no-console
|
||||
}
|
||||
}
|
||||
|
||||
this.serverSequence = 0;
|
||||
|
||||
this.serverSequence = 0;
|
||||
}
|
||||
|
||||
// If it's a fresh connection, we have to set the connectionId regardless.
|
||||
|
||||
Ссылка в новой задаче
Block a user