Skip to content

Commit

Permalink
fix(General): 🚨 Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Joery-M committed Sep 25, 2024
1 parent d580155 commit df16ab5
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 12 deletions.
4 changes: 1 addition & 3 deletions packages/darkroom/dev/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ async function execute() {
log.value += '\n' + util.format(`${label}: ${time}ms`);
}
} as Console,
// Couldnt find a simple way of doing this without allowing for time based attacks
// eslint-disable-next-line @typescript-eslint/ban-types
setTimeout(callback: Function, ms: number) {
setTimeout(callback: () => any, ms: number) {
setTimeout(callback, ms + Math.random() * 2 - 1);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"
>
<div
class="bg-checkerboard relative flex aspect-video w-full items-center justify-center overflow-clip rounded-t-md"
class="bg-checkerboard relative flex aspect-video w-full items-center justify-center text-clip rounded-t-md"
>
<img
v-if="item.previewImage.value"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<canvas ref="canvas" class="h-full w-full"></canvas>
<canvas ref="canvas" class="size-full"></canvas>
</template>

<script setup lang="ts">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="flex h-full">
<div class="tree">
<Tree
v-model:expandedKeys="expandedKeys"
v-model:expanded-keys="expandedKeys"
class="min-w-64"
:selection-keys="{ [selectedPath]: true }"
:value="tree"
Expand Down
2 changes: 1 addition & 1 deletion packages/safelight/src/components/Panels/LoadingPanel.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="grid h-full w-full place-content-center">
<div class="grid size-full place-content-center">
<PhCircleNotch class="animate-spin" :aria-label="$t('general.loading')" size="48" />
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion packages/safelight/src/components/Panels/PanelGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<template #item="{ item, props, index }">
<a
v-bind="props.action"
class="align-items-center flex min-w-36 gap-1 p-2 pl-2 pr-1"
class="align-items-center flex min-w-36 gap-1 p-2 pr-1"
@click="activeIndex = index"
>
<component :is="item.icon" class="mr-2" />
Expand Down
2 changes: 1 addition & 1 deletion packages/safelight/src/views/dev/Packages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
}}
</a>
</span>
<div class="mt-2 line-clamp-3 flex-grow">
<div class="mt-2 line-clamp-3 grow">
{{ item.description }}
</div>
<div class="flex-column mt-4 flex gap-4">
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/Settings/SettingsManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class SettingsManager {
const pathArray = Array.isArray(path) ? path : path.split('.');

// Loop through path array to find nested namespace
return pathArray.reduce((ns, path, curIndex) => {
return pathArray.reduce((ns, _path, curIndex) => {
if (!ns) return;

const childNs = ns?.childNamespaces?.find(
Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/Storage/IndexedDbStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ export default class IndexedDbStorageController extends BaseStorageController {
const existingProject = await this.db.project.get({ id: project.id });

// Remove created so it can't be overridden
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { created, ...restProject } = project;

const storableProject: StoredProject = {
Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/helpers/Files/GetFileInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export async function getFileInfo(file: File) {
});

MediaInfoFactory({
// eslint-disable-next-line @typescript-eslint/no-unused-vars
locateFile(_url, _scriptDirectory) {
return MediaInfoWasmUrl;
}
Expand Down

0 comments on commit df16ab5

Please sign in to comment.