Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger committed Dec 14, 2024
1 parent 4ba7334 commit fb8c772
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import React from 'react';
import { render, screen, fireEvent, waitFor } from 'design/utils/testing';
import { fireEvent, render, screen } from 'design/utils/testing';

import { makeDefaultMfaState, MfaState } from 'teleport/lib/useMfa';

Expand Down
5 changes: 1 addition & 4 deletions web/packages/teleport/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ import type {

import type { SortType } from 'teleport/services/agents';
import type { RecordingType } from 'teleport/services/recordings';
import type {
MfaChallengeResponse,
WebauthnAssertionResponse,
} from './services/mfa';
import type { MfaChallengeResponse } from './services/mfa';
import type {
PluginKind,
Regions,
Expand Down
5 changes: 1 addition & 4 deletions web/packages/teleport/src/lib/EventEmitterMfaSender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@

import { EventEmitter } from 'events';

import {
MfaChallengeResponse,
WebauthnAssertionResponse,
} from 'teleport/services/mfa';
import { MfaChallengeResponse } from 'teleport/services/mfa';

class EventEmitterMfaSender extends EventEmitter {
constructor() {
Expand Down
1 change: 0 additions & 1 deletion web/packages/teleport/src/lib/tdp/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ import type {
SyncKeys,
SharedDirectoryTruncateResponse,
} from './codec';
import type { WebauthnAssertionResponse } from 'teleport/services/mfa';

export enum TdpClientEvent {
TDP_CLIENT_SCREEN_SPEC = 'tdp client screen spec',
Expand Down
1 change: 0 additions & 1 deletion web/packages/teleport/src/lib/term/tty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import Logger from 'shared/libs/logger';

import { EventEmitterMfaSender } from 'teleport/lib/EventEmitterMfaSender';
import { WebauthnAssertionResponse } from 'teleport/services/mfa';
import { AuthenticatedWebSocket } from 'teleport/lib/AuthenticatedWebSocket';

import { MfaChallengeResponse } from 'teleport/services/mfa';
Expand Down
2 changes: 1 addition & 1 deletion web/packages/teleport/src/lib/useMfa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ export function makeDefaultMfaState(): MfaState {
mfaChallenge: null,
submitAttempt: makeEmptyAttempt(),
submitMfa: () => null,
mfaRequired: false,
mfaRequired: true,
};
}

0 comments on commit fb8c772

Please sign in to comment.