Browse Source

Fixes lint issues

main
Eric Amodio 2 years ago
parent
commit
f6412c9c15
2 changed files with 6 additions and 4 deletions
  1. +4
    -2
      src/webviews/apps/commitDetails/commitDetails.ts
  2. +2
    -2
      src/webviews/commitDetails/commitDetailsWebviewView.ts

+ 4
- 2
src/webviews/apps/commitDetails/commitDetails.ts View File

@ -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();
}

+ 2
- 2
src/webviews/commitDetails/commitDetailsWebviewView.ts View File

@ -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;

Loading…
Cancel
Save