1.0.1 • Published 3 months ago

@seungwoo321/prettier-config v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

@seungwoo321/prettier-config

Standard 스타일을 기반으로, 개인 취향에 맞게 커스터마이징한 Prettier 설정입니다.

설치

npm install @seungwoo321/prettier-config -D

사용법

.prettierrc.js 파일을 생성하고 아래와 같이 설정합니다:

import prettierConfig from '@seungwoo321/prettier-config'

/**
 * @type {import("prettier").Config}
 */
const config = {
  ...prettierConfig
}

export default config

또는, package.json에 직접 추가할 수도 있습니다:

"prettier": "@seungwoo321/prettier-config"

IDE 연동 (VSCode)

Prettier를 자동 포맷터로 사용하려면 아래와 같이 설정하세요:

.vscode/settings.json:

{
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,
  "prettier.singleAttributePerLine": true
}

💡 코드 품질 유지를 위해 @seungwoo321/eslint-plugin-standard-js base 규칙과 함께 사용하는 것을 권장합니다.

1.0.1

3 months ago

1.0.0

3 months ago