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:
@@ -110,7 +110,7 @@ export function DevToolbar() {
|
||||
isEnabled,
|
||||
isVisible,
|
||||
setIsVisible,
|
||||
currentPage,
|
||||
currentPage: _currentPage,
|
||||
fillForm,
|
||||
hasRegisteredForm,
|
||||
flowData,
|
||||
|
||||
@@ -6,7 +6,6 @@ import {
|
||||
randomPick,
|
||||
randomInt,
|
||||
today,
|
||||
randomRemark,
|
||||
} from './index';
|
||||
|
||||
// ===== 공통 상수 =====
|
||||
@@ -21,7 +20,7 @@ const SAMPLE_VENDORS = [
|
||||
];
|
||||
|
||||
// 계좌명 목록
|
||||
const ACCOUNT_NAMES = [
|
||||
const _ACCOUNT_NAMES = [
|
||||
'기업은행 1234-5678-9012',
|
||||
'국민은행 111-22-33333',
|
||||
'신한은행 110-123-456789',
|
||||
@@ -32,7 +31,7 @@ const ACCOUNT_NAMES = [
|
||||
// ===== 입금 관련 =====
|
||||
|
||||
// 입금 유형
|
||||
const DEPOSIT_TYPES = ['revenue', 'deposit', 'sales', 'other', 'unset'];
|
||||
const _DEPOSIT_TYPES = ['revenue', 'deposit', 'sales', 'other', 'unset'];
|
||||
|
||||
// 입금자명
|
||||
const DEPOSITOR_NAMES = [
|
||||
@@ -92,7 +91,7 @@ export function generateDepositData(options: GenerateDepositDataOptions = {}): D
|
||||
// ===== 출금 관련 =====
|
||||
|
||||
// 출금 유형
|
||||
const WITHDRAWAL_TYPES = ['expense', 'payment', 'purchase', 'salary', 'other', 'unset'];
|
||||
const _WITHDRAWAL_TYPES = ['expense', 'payment', 'purchase', 'salary', 'other', 'unset'];
|
||||
|
||||
// 수취인명
|
||||
const RECIPIENT_NAMES = [
|
||||
@@ -153,7 +152,7 @@ export function generateWithdrawalData(options: GenerateWithdrawalDataOptions =
|
||||
// ===== 매입(지출결의서) 관련 =====
|
||||
|
||||
// 문서 유형
|
||||
const DOCUMENT_TYPES = ['proposal', 'expenseReport', 'expenseEstimate'];
|
||||
const _DOCUMENT_TYPES = ['proposal', 'expenseReport', 'expenseEstimate'];
|
||||
|
||||
// 지출결의서 제목
|
||||
const PROPOSAL_TITLES = [
|
||||
@@ -314,7 +313,7 @@ const CARD_MEMOS = [
|
||||
];
|
||||
|
||||
// 사용유형 (usageType) - 카드 결제 분류
|
||||
const CARD_USAGE_TYPES = ['unset', 'meal', 'transport', 'supplies', 'entertainment', 'other'];
|
||||
const _CARD_USAGE_TYPES = ['unset', 'meal', 'transport', 'supplies', 'entertainment', 'other'];
|
||||
|
||||
export interface CardTransactionFormData {
|
||||
cardId: string;
|
||||
|
||||
@@ -16,8 +16,6 @@ import {
|
||||
tempId,
|
||||
} from './index';
|
||||
import type { QuoteFormData, QuoteFormItem } from '@/components/quotes/types';
|
||||
import type { Vendor } from '@/components/accounting/VendorManagement/types';
|
||||
import type { FinishedGoods } from '@/components/quotes/actions';
|
||||
|
||||
// 제품 카테고리
|
||||
const PRODUCT_CATEGORIES = ['SCREEN', 'STEEL'];
|
||||
|
||||
Reference in New Issue
Block a user