Skip to content

ci: biome formatter에서 package.json 제외#126

Merged
Palbahngmiyine merged 1 commit intosolapi:betafrom
Palbahngmiyine:fix/biome-pkg-json
Apr 8, 2026
Merged

ci: biome formatter에서 package.json 제외#126
Palbahngmiyine merged 1 commit intosolapi:betafrom
Palbahngmiyine:fix/biome-pkg-json

Conversation

@Palbahngmiyine
Copy link
Copy Markdown
Member

기능 변경사항

  • biome formatter의 includes에서 package.json을 제외했습니다.

프로젝트 내부 변경사항

release-please가 package.json을 업데이트할 때 "files" 배열을 multi-line으로 포맷합니다.
biome는 single-line을 기대하므로 lint:ci(biome check)에서 포맷 에러가 발생합니다.

release-please가 매 릴리스마다 package.json을 수정하므로, formatter 대상에서 제외하는 것이 올바른 해결책입니다.

Test plan

  • release-please PR의 CI lint가 통과하는지 확인

🤖 Generated with Claude Code

release-please가 package.json 업데이트 시 포맷을 변경하여
biome check(lint:ci)에서 포맷 에러가 발생한다.
package.json은 release-please가 관리하므로 formatter 대상에서 제외.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Biome configuration to exclude package.json from the formatter. A review comment suggests using the ignore field instead of a negation pattern within the includes field to improve clarity and avoid potential conflicts with global inclusion settings.

"formatter": {
"enabled": true,
"formatWithErrors": false,
"includes": ["**", "!package.json"],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

특정 파일을 제외할 때는 includes 필드에서 부정 패턴(!)을 사용하는 것보다 ignore 필드를 사용하는 것이 더 명확하고 권장되는 방식입니다. includes**를 다시 선언하는 것은 전역 files.includes 설정과 중복될 수 있으며, ignore를 사용하면 전역 포함 로직을 건드리지 않고 특정 파일만 안전하게 제외할 수 있습니다.

Suggested change
"includes": ["**", "!package.json"],
"ignore": ["package.json"],

@Palbahngmiyine Palbahngmiyine merged commit 8d85dc4 into solapi:beta Apr 8, 2026
3 checks passed
@Palbahngmiyine Palbahngmiyine deleted the fix/biome-pkg-json branch April 8, 2026 06:24
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