Skip to content

Proposal: code-style-cli 패키지 추가 #138

@pja9362

Description

@pja9362

배경

  • pnpm v10+에서는 보안상의 이유로 postinstall 스크립트가 기본적으로 실행되지 않습니다. (참고)
  • 이로 인해 현재 pnpm v10+ 환경에서는 @naverpay/editorconfig, @naverpay/markdown-lint 등 postinstall에 의존하는 패키지들이 설정 파일을 자동 생성하지 못합니다.

제안

패키지 설치와 설정 파일 생성을 한 번에 처리하는 CLI 도구를 추가합니다.

npx @naverpay/code-style-cli

기능

  • 패키지 매니저 자동 감지 (npm, yarn, pnpm)
  • 패키지 선택 UI
  • 선택한 패키지 설치
  • 설정 파일 자동 생성
  • oxfmt 지원 추가 (extends 미지원으로 별도 config 패키지 없이 CLI에서 직접 권장 설정 생성)

지원 패키지

패키지 설정 파일
@naverpay/prettier-config .prettierrc
@naverpay/stylelint-config stylelint.config.mjs
@naverpay/markdown-lint .markdownlint.jsonc
@naverpay/editorconfig .editorconfig
@naverpay/oxlint-config .oxlintrc.json
@naverpay/biome-config biome.json
oxfmt .oxfmtrc.json

eslint-config, eslint-plugin은 프로젝트 환경에 따라 설정이 다양하여 설정 파일을 자동 생성하지 않습니다. 각 패키지 README를 참고하세요.

작업 계획

1차 목표

  • @naverpay/code-style-cli 패키지 추가

2차 목표 (📝 추후 진행 예정)

  • 기존 패키지(editorconfig, markdown-lint)에서 postinstall 제거

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions