From f6412c9c157dd7f7ebe9e684042f9ee09f531cf3 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 4 Aug 2022 02:27:33 -0400 Subject: [PATCH] Fixes lint issues --- src/webviews/apps/commitDetails/commitDetails.ts | 6 ++++-- src/webviews/commitDetails/commitDetailsWebviewView.ts | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/webviews/apps/commitDetails/commitDetails.ts b/src/webviews/apps/commitDetails/commitDetails.ts index 90f8c9e..65eae76 100644 --- a/src/webviews/apps/commitDetails/commitDetails.ts +++ b/src/webviews/apps/commitDetails/commitDetails.ts @@ -14,6 +14,7 @@ import { State, } from '../../commitDetails/protocol'; import { App } from '../shared/appBase'; +// eslint-disable-next-line import/no-duplicates import { FileChangeItem, FileChangeItemEventDetail } from '../shared/components/commit/file-change-item'; import { DOM } from '../shared/dom'; import './commitDetails.scss'; @@ -23,7 +24,7 @@ import '../shared/components/formatted-date'; import '../shared/components/rich/issue-pull-request'; import '../shared/components/skeleton-loader'; import '../shared/components/commit/commit-stats'; -// eslint-disable-next-line @typescript-eslint/no-duplicate-imports +// eslint-disable-next-line @typescript-eslint/no-duplicate-imports, import/no-duplicates import '../shared/components/commit/file-change-item'; import '../shared/components/webview-pane'; @@ -62,7 +63,7 @@ export class CommitDetailsApp extends App { return disposables; } - onPickCommit(e: MouseEvent) { + onPickCommit(_e: MouseEvent) { this.sendCommand(PickCommitCommandType, undefined); } @@ -154,6 +155,7 @@ export class CommitDetailsApp extends App { this.renderStats(); this.renderFiles(); + // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions if (this.state.includeRichContent) { this.renderAutolinks(); } diff --git a/src/webviews/commitDetails/commitDetailsWebviewView.ts b/src/webviews/commitDetails/commitDetailsWebviewView.ts index 88f0623..8c3f3a6 100644 --- a/src/webviews/commitDetails/commitDetailsWebviewView.ts +++ b/src/webviews/commitDetails/commitDetailsWebviewView.ts @@ -76,12 +76,12 @@ export class CommitDetailsWebviewView extends WebviewViewBase { }); break; case CommitActionsCommandType.method: - onIpc(CommitActionsCommandType, e, params => { + onIpc(CommitActionsCommandType, e, _params => { this.showCommitActions(); }); break; case PickCommitCommandType.method: - onIpc(PickCommitCommandType, e, params => { + onIpc(PickCommitCommandType, e, _params => { this.showCommitSearch(); }); break;