fix: eslint warnings (#252)

This commit is contained in:
kimatata
2025-07-20 10:59:57 +09:00
committed by GitHub
parent e6be84b67e
commit 9ae67fd303
118 changed files with 423 additions and 511 deletions

View File

@@ -1,3 +1,4 @@
import { logError } from '@/utils/errorHandler';
import { ProjectRoleType, TokenType } from '@/types/user';
import { roles, memberRoles } from '@/config/selection';
import Config from '@/config/config';
@@ -56,8 +57,8 @@ async function fetchMyRoles(jwt: string) {
}
const data = await response.json();
return data;
} catch (error: any) {
console.error('Error fetching data:', error.message);
} catch (error: unknown) {
logError('Error fetching data:', error);
}
}
@@ -165,7 +166,7 @@ const isPrivatePath = (pathname: string) => {
};
function checkSignInPage(token: TokenType, pathname: string) {
let ret = {
const ret = {
ok: true,
reason: '',
redirectPath: '',