From f14a3d2eb0254d2564d7fa73e624847224412df2 Mon Sep 17 00:00:00 2001 From: Mathijs de Bruin Date: Mon, 18 Nov 2024 22:26:35 +0000 Subject: [PATCH] Some more lint fiuxps. --- libs/react-client/src/types/element.ts | 6 +++--- libs/react-client/src/utils/token.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/react-client/src/types/element.ts b/libs/react-client/src/types/element.ts index 157d540afa..b77feeb214 100644 --- a/libs/react-client/src/types/element.ts +++ b/libs/react-client/src/types/element.ts @@ -68,8 +68,8 @@ export interface IFileElement extends TMessageElement<'file'> { type: 'file'; } -export interface IPlotlyElement extends TMessageElement<'plotly'> {} +export type IPlotlyElement = TMessageElement<'plotly'>; -export interface ITasklistElement extends TElement<'tasklist'> {} +export type ITasklistElement = TElement<'tasklist'>; -export interface IDataframeElement extends TMessageElement<'dataframe'> {} +export type IDataframeElement = TMessageElement<'dataframe'>; diff --git a/libs/react-client/src/utils/token.ts b/libs/react-client/src/utils/token.ts index 3221bbf2d5..6470a846a9 100644 --- a/libs/react-client/src/utils/token.ts +++ b/libs/react-client/src/utils/token.ts @@ -3,7 +3,7 @@ const tokenKey = 'token'; export function getToken() { try { return localStorage.getItem(tokenKey); - } catch (e) { + } catch (_) { return; } } @@ -11,7 +11,7 @@ export function getToken() { export function setToken(token: string) { try { return localStorage.setItem(tokenKey, token); - } catch (e) { + } catch (_) { return; } } @@ -19,7 +19,7 @@ export function setToken(token: string) { export function removeToken() { try { return localStorage.removeItem(tokenKey); - } catch (e) { + } catch (_) { return; } }