diff --git a/frontend/.oxlintrc.json b/frontend/.oxlintrc.json index f1df75a3016d..24b92029efee 100644 --- a/frontend/.oxlintrc.json +++ b/frontend/.oxlintrc.json @@ -18,7 +18,7 @@ }, { "jsPlugins": ["eslint-plugin-solid", "@tanstack/eslint-plugin-query"], - "files": ["src/**/*.tsx", "src/**/*.ts"], + "files": ["src/**/*.tsx"], "rules": { "explicit-function-return-type": "off", "solid/components-return-once": "error", diff --git a/frontend/src/ts/signals/core.ts b/frontend/src/ts/signals/core.ts index ef007615eee5..d3b51e8f4950 100644 --- a/frontend/src/ts/signals/core.ts +++ b/frontend/src/ts/signals/core.ts @@ -31,7 +31,7 @@ export const [getGlobalOffsetTop, setGlobalOffsetTop] = createSignal(0); export const [getIsScreenshotting, setIsScreenshotting] = createSignal(false); export const [getUserId, setUserId] = createSignal(null); -export const isLoggedIn = () => getUserId() !== null; +export const isLoggedIn = (): boolean => getUserId() !== null; export const [getSelectedProfileName, setSelectedProfileName] = createSignal< string | undefined diff --git a/frontend/src/ts/stores/snapshot.ts b/frontend/src/ts/stores/snapshot.ts index 8a6c187137f0..ae2ee51f8b17 100644 --- a/frontend/src/ts/stores/snapshot.ts +++ b/frontend/src/ts/stores/snapshot.ts @@ -11,7 +11,7 @@ const [snapshot, updateSnapshot] = createStore<{ value: MiniSnapshot | undefined; }>({ value: undefined }); -export function setSnapshot(newValue: MiniSnapshot | undefined) { +export function setSnapshot(newValue: MiniSnapshot | undefined): void { if (newValue === undefined) { updateSnapshot("value", undefined); } else { @@ -22,7 +22,7 @@ export function setSnapshot(newValue: MiniSnapshot | undefined) { } } -export function getSnapshot() { +export function getSnapshot(): MiniSnapshot | undefined { return snapshot.value; }