Skip to content

chore: biome #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

chore: biome #4

wants to merge 3 commits into from

Conversation

LeeEugene1
Copy link
Collaborator

@LeeEugene1 LeeEugene1 commented Apr 28, 2025

{
	// Biome의 JSON 스키마 버전을 지정
	"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
	
	// 버전 관리 시스템(VCS) 관련 설정
	"vcs": {
		"enabled": false,        // VCS 통합 기능 비활성화
		"clientKind": "git",     // Git을 버전 관리 시스템으로 사용
		"useIgnoreFile": false   // .gitignore 파일 사용 안함
	},
	
	// 파일 관련 설정
	"files": {
		"ignoreUnknown": false,  // 알 수 없는 파일 형식도 처리
		"ignore": []            // 무시할 파일 목록 (비어있음)
	},
	
	// 코드 포맷터 설정
	"formatter": {
		"enabled": true,        // 포맷터 활성화
		"indentStyle": "space", // 들여쓰기 스타일: 스페이스
		"indentWidth": 2,       // 들여쓰기 너비: 2칸
		"lineWidth": 100        // 한 줄 최대 길이: 100자
	},
	
	// import 문 자동 정리 설정
	"organizeImports": {
		"enabled": true         // import 문 자동 정리 활성화
	},
	
	// 린터 설정
	"linter": {
		"enabled": true,        // 린터 활성화
		"rules": {
			"recommended": true, // 추천 규칙 활성화
			
			// 코드 정확성 관련 규칙
			"correctness": {
				"noUnusedVariables": "error",      // 사용하지 않는 변수 금지
				"noUnusedImports": "error",        // 사용하지 않는 import 금지
				"requireKeyForArrayComponents": "error"  // 배열 컴포넌트에 key 필수
			},
			
			// 의심스러운 코드 패턴 검사
			"suspicious": {
				"noExplicitAny": "error"  // any 타입 사용 금지
			},
			
			// 코드 스타일 관련 규칙
			"style": {
				"useConst": "error",      // 가능한 경우 const 사용
				"useTemplate": "error"    // 템플릿 리터럴 사용 권장
			},
			
			// 네이밍 컨벤션 규칙
			"naming": {
				"camelCase": "error"      // 변수명은 camelCase 사용
			}
		}
	},
	
	// JavaScript 관련 설정
	"javascript": {
		"formatter": {
			"quoteStyle": "double",      // 문자열에 더블 쿼트 사용
			"semicolons": "always"       // 항상 세미콜론 사용
		}
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant