Skip to content

Commit

Permalink
removing more unnecessary eslint suppressions
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinbarron committed Oct 12, 2023
1 parent 38ac132 commit 7b7ed18
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 7 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const subscriptionCacheKey = 'graph-current-subscriptions';

export class SubscriptionsCache {
private get cache(): CacheStore<CachedSubscriptionData> {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const conversation: CacheSchema = schemas.conversation;
return CacheService.getCache<CachedSubscriptionData>(conversation, conversation.stores.chats);
}
Expand Down Expand Up @@ -45,7 +44,6 @@ export class SubscriptionsCache {
}

public async clearCachedSubscriptions(): Promise<void> {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
await this.cache.delete(subscriptionCacheKey);
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { CacheService } from '@microsoft/mgt-react';

export const isConversationCacheEnabled = (): boolean => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const conversation = CacheService.config.conversation;
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access
return conversation.isEnabled && CacheService.config.isEnabled;
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* -------------------------------------------------------------------------------------------
*/

/* eslint-disable no-console */
import { BetaGraph, IGraph, Providers, error, log } from '@microsoft/mgt-element';
import { HubConnection, HubConnectionBuilder, IHttpConnectionOptions, LogLevel } from '@microsoft/signalr';
import { ThreadEventEmitter } from './ThreadEventEmitter';
Expand Down Expand Up @@ -272,7 +271,6 @@ export class GraphNotificationClient {

connection.on('receivenotificationmessageasync', this.receiveNotificationMessage);

// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
connection.on('EchoMessage', log);

this.connection = connection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ export class MgtPicker extends MgtTemplatedComponent {
if (parent) {
parent.addEventListener('dataChange', (e: CustomEvent<DataChangedDetail>): void => this.handleDataChange(e));
} else {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
error('mgt-picker component requires a child mgt-get component. Something has gone horribly wrong.');
}
}
Expand Down

0 comments on commit 7b7ed18

Please sign in to comment.