Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Prune

Manav Rathiebe0292cb4e2
diff --git a/web/apps/photos/eslint.config.mjs b/web/apps/photos/eslint.config.mjs
index 68b8f15273..f7703446ed 100644
--- a/web/apps/photos/eslint.config.mjs
+++ b/web/apps/photos/eslint.config.mjs
@@ -23,7 +23,6 @@ export default [
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
- "@typescript-eslint/array-type": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unnecessary-template-expression": "off",
"@typescript-eslint/consistent-indexed-object-style": "off",
@@ -33,7 +32,6 @@ export default [
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-optional-chain": "off",
- "@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/consistent-type-definitions": "off",
@@ -41,7 +39,6 @@ export default [
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-unnecessary-type-arguments": "off",
- "@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/no-unused-expressions": "off",
diff --git a/web/apps/photos/src/components/WatchFolder.tsx b/web/apps/photos/src/components/WatchFolder.tsx
index f8b75086ee..1d2eb5d028 100644
--- a/web/apps/photos/src/components/WatchFolder.tsx
+++ b/web/apps/photos/src/components/WatchFolder.tsx
@@ -74,6 +74,7 @@ export const WatchFolder: React.FC<ModalVisibilityProps> = ({
}, [appContext.watchFolderFiles]);
const handleFolderDrop = async (folders: FileList) => {
+ // eslint-disable-next-line @typescript-eslint/prefer-for-of
for (let i = 0; i < folders.length; i++) {
const folder: any = folders[i];
const path = (folder.path as string).replace(/\\/g, "/");
diff --git a/web/apps/photos/src/services/deduplicationService.ts b/web/apps/photos/src/services/deduplicationService.ts
index 0a2c091fa3..bb36e1a7ba 100644
--- a/web/apps/photos/src/services/deduplicationService.ts
+++ b/web/apps/photos/src/services/deduplicationService.ts
@@ -7,10 +7,10 @@ import HTTPService from "@ente/shared/network/HTTPService";
import { getToken } from "@ente/shared/storage/localStorage/helpers";
interface DuplicatesResponse {
- duplicates: Array<{
+ duplicates: {
fileIDs: number[];
size: number;
- }>;
+ }[];
}
export interface Duplicate {
diff --git a/web/apps/photos/src/services/trashService.ts b/web/apps/photos/src/services/trashService.ts
index 802cf4f2ab..eb9aa67f0f 100644
--- a/web/apps/photos/src/services/trashService.ts
+++ b/web/apps/photos/src/services/trashService.ts
@@ -17,7 +17,7 @@ const TRASH_TIME = "trash-time";
const DELETED_COLLECTION = "deleted-collection";
export async function getLocalDeletedCollections() {
- const trashedCollections: Array<Collection> =
+ const trashedCollections: Collection[] =
(await localForage.getItem<Collection[]>(DELETED_COLLECTION)) || [];
const nonUndefinedCollections = trashedCollections.filter(
(collection) => !!collection,