This commit is contained in:
Manav Rathi
2024-11-20 10:14:30 +05:30
parent 132e509589
commit ebe0292cb4
4 changed files with 4 additions and 6 deletions

View File

@@ -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",

View File

@@ -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, "/");

View File

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

View File

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