Fix lint warnings

This commit is contained in:
Mattias Granlund 2023-11-29 11:48:33 +01:00
parent ad11d82ae9
commit 42ca5c5952
5 changed files with 4 additions and 23 deletions

View File

@ -1,22 +1,6 @@
import lscache from 'lscache';
import {
Observable,
EMPTY,
BehaviorSubject,
of,
firstValueFrom,
lastValueFrom,
Subject
} from 'rxjs';
import {
catchError,
combineLatestWith,
map,
shareReplay,
switchMap,
take,
tap
} from 'rxjs/operators';
import { Observable, EMPTY, BehaviorSubject, of, firstValueFrom, Subject } from 'rxjs';
import { catchError, combineLatestWith, map, shareReplay, switchMap, tap } from 'rxjs/operators';
import {
type PullRequest,

View File

@ -1,7 +1,7 @@
import type { User } from '$lib/backend/cloud';
import type { GitHubIntegrationContext } from '$lib/github/types';
import type { BaseBranch } from '$lib/vbranches/types';
import { combineLatest, switchMap, type Observable, of, shareReplay, distinct, tap } from 'rxjs';
import { combineLatest, switchMap, type Observable, of, shareReplay, distinct } from 'rxjs';
export function getGithubContext(
user$: Observable<User | undefined>,

View File

@ -40,7 +40,7 @@
isLoading = false;
}
function onClick(e: MouseEvent | KeyboardEvent) {
function onClick() {
loadEntries();
previewCommitModal.show();
}

View File

@ -4,11 +4,9 @@
<script lang="ts">
import type { BaseBranch, Branch, Commit } from '$lib/vbranches/types';
import type { CrossfadeParams, TransitionConfig } from 'svelte/transition';
import PushButton from './PushButton.svelte';
import type { GitHubIntegrationContext } from '$lib/github/types';
import Button from '$lib/components/Button.svelte';
import { flip } from 'svelte/animate';
import type { BranchController } from '$lib/vbranches/branchController';
import type { DraggableCommit, DraggableFile, DraggableHunk } from '$lib/draggables';
import Icon from '$lib/icons/Icon.svelte';

View File

@ -1,5 +1,4 @@
<script lang="ts">
import IconButton from '$lib/components/IconButton.svelte';
import type { DraggableCommit, DraggableFile, DraggableHunk } from '$lib/draggables';
import { dropzone } from '$lib/utils/draggable';
import type { BaseBranch, Commit } from '$lib/vbranches/types';