feat: ESLint 정리 및 전체 코드 품질 개선
- eslint.config.mjs 규칙 강화 및 정리 - 전역 unused import/변수 제거 (312개 파일) - next.config.ts, middleware, proxy route 개선 - CopyableCell molecule 추가 - 회계/결재/HR/생산/건설/품질/영업 등 전 도메인 lint 정리 - IntegratedListTemplateV2, DataTable, MobileCard 등 공통 컴포넌트 개선 - execute-server-action 에러 핸들링 보강
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
*/
|
||||
|
||||
import { createContext, useContext, useCallback, useRef, type ReactNode } from 'react';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { isAuthError, isApiError, type ApiErrorResponse } from '@/lib/api/errors';
|
||||
import { callLogoutAPI } from '@/lib/auth/logout';
|
||||
|
||||
@@ -33,7 +32,6 @@ const ApiErrorContext = createContext<ApiErrorContextType | null>(null);
|
||||
* Protected Layout에 추가하여 모든 하위 페이지에서 사용
|
||||
*/
|
||||
export function ApiErrorProvider({ children }: { children: ReactNode }) {
|
||||
const router = useRouter();
|
||||
const isRedirecting = useRef(false);
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,8 +16,6 @@ import type {
|
||||
IndependentSectionRequest,
|
||||
IndependentFieldRequest,
|
||||
IndependentBomItemRequest,
|
||||
LinkSectionRequest,
|
||||
LinkFieldRequest,
|
||||
SectionUsageResponse,
|
||||
FieldUsageResponse,
|
||||
} from '@/types/item-master-api';
|
||||
@@ -49,11 +47,8 @@ export type {
|
||||
} from '@/types/item-master.types';
|
||||
|
||||
import type {
|
||||
BendingDetail,
|
||||
BOMLine,
|
||||
SpecificationMaster,
|
||||
MaterialItemName,
|
||||
ItemRevision,
|
||||
ItemMaster,
|
||||
ItemCategory,
|
||||
ItemUnit,
|
||||
@@ -62,9 +57,7 @@ import type {
|
||||
PartTypeOption,
|
||||
PartUsageOption,
|
||||
GuideRailOption,
|
||||
ItemFieldProperty,
|
||||
ItemMasterField,
|
||||
FieldDisplayCondition,
|
||||
ItemField,
|
||||
BOMItem,
|
||||
ItemSection,
|
||||
|
||||
Reference in New Issue
Block a user