Prune
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { createContext } from "react";
|
||||
|
||||
export const OverflowMenuContext = createContext({
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
close: () => {},
|
||||
});
|
||||
|
||||
@@ -22,16 +22,8 @@ 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",
|
||||
"@typescript-eslint/prefer-promise-reject-errors": "off",
|
||||
"@typescript-eslint/no-useless-constructor": "off",
|
||||
"react-hooks/exhaustive-deps": "off",
|
||||
/** TODO: New during eslint 8=>9 migration */
|
||||
"@typescript-eslint/no-unused-expressions": "off",
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -2,13 +2,9 @@ import log from "@/base/log";
|
||||
import axios, { type AxiosRequestConfig, type AxiosResponse } from "axios";
|
||||
import { ApiError, isApiErrorResponse } from "../error";
|
||||
|
||||
interface IHTTPHeaders {
|
||||
[headerKey: string]: any;
|
||||
}
|
||||
type IHTTPHeaders = Record<string, any>;
|
||||
|
||||
interface IQueryPrams {
|
||||
[paramName: string]: any;
|
||||
}
|
||||
type IQueryPrams = Record<string, any>;
|
||||
|
||||
/**
|
||||
* Service to manage all HTTP calls.
|
||||
|
||||
@@ -5,8 +5,6 @@ import { getToken } from "../storage/localStorage/helpers";
|
||||
import HTTPService from "./HTTPService";
|
||||
|
||||
class CastGateway {
|
||||
constructor() {}
|
||||
|
||||
public async getCastData(code: string): Promise<string | null> {
|
||||
let resp;
|
||||
try {
|
||||
@@ -78,6 +76,7 @@ class CastGateway {
|
||||
await HTTPService.post(
|
||||
await apiURL("/cast/cast-data/"),
|
||||
{
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-template-expression
|
||||
deviceCode: `${code}`,
|
||||
encPayload: castPayload,
|
||||
collectionID: collectionID,
|
||||
|
||||
@@ -75,6 +75,7 @@ export const migrateKVToken = async (user: unknown) => {
|
||||
typeof oldLSUser.token == "string" &&
|
||||
!(await getKVS("token"));
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
user &&
|
||||
typeof user == "object" &&
|
||||
"id" in user &&
|
||||
@@ -82,6 +83,7 @@ export const migrateKVToken = async (user: unknown) => {
|
||||
? await setKV("userID", user.id)
|
||||
: await removeKV("userID");
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
user &&
|
||||
typeof user == "object" &&
|
||||
"token" in user &&
|
||||
|
||||
2
web/packages/shared/themes/mui-theme.d.ts
vendored
2
web/packages/shared/themes/mui-theme.d.ts
vendored
@@ -200,6 +200,6 @@ declare module "@mui/material/styles" {
|
||||
faint: number;
|
||||
}
|
||||
|
||||
type AvatarColors = Array<string>;
|
||||
type AvatarColors = string[];
|
||||
}
|
||||
export {};
|
||||
|
||||
@@ -16,7 +16,7 @@ export const getActualKey = async () => {
|
||||
encryptionKeyAttributes.key,
|
||||
);
|
||||
return key;
|
||||
} catch (e) {
|
||||
} catch {
|
||||
throw new Error(CustomError.KEY_MISSING);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user