refactor: namespace 및 namespace import 제거 & subpath named export 전환 & relative parent import 제거#58
Open
MU-Software wants to merge 4 commits into
Open
refactor: namespace 및 namespace import 제거 & subpath named export 전환 & relative parent import 제거#58MU-Software wants to merge 4 commits into
MU-Software wants to merge 4 commits into
Conversation
This was referenced May 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
코드베이스 전반의 import / module 구조를 현대적인 TypeScript 컨벤션에 맞춰 정리하는 순수 리팩터링입니다. 기능 변경은 없습니다.
1.
namespace키워드 및 namespace import 제거namespace Foo { ... }키워드 사용을 패키지 전반에서 제거 (shop의 9개 배럴 + common/components)import * as React/* as R등 namespace import 196 → 2개 (남은 2개는...runtime,...provider스프레드용으로 필수)2. Subpath named export 전환
export * as Components,export { default as ... }) 제거 → 평탄한 named re-exportimport { MDXRenderer } from "@frontend/common/components"같은 subpath named import 사용3. Relative parent import 제거
../../../../packages/common/src/schemas/backendAPI같은 깊은 상대 경로를 alias로 일괄 치환 (239개)@apps/pyconkr-admin/*,@apps/pyconkr-participant-portal/*(root tsconfig에 추가)tsconfig.base.json을 신설해 7개 tsconfig의 중복 옵션 일원화 (extends로 상속)보너스
import/no-restricted-paths규칙 추가ignores위치 버그 수정*.tsbuildinfogitignore 추가