EunKangChoi-Dyphi / potential-403-nestjs

Trazzle - 비사이드 포텐셜 403 팀레포
2 stars 1 forks source link

:art: Update: prettier format적용 #34

Closed EunKangChoi-Dyphi closed 3 months ago

EunKangChoi-Dyphi commented 3 months ago

⛳️ 기능 구현 배경


같은 프로젝트의 코드를 다른 포맷팅에 적용되어 PR 요청시 코드 충돌이 일어납니다. 코드포맷팅을 통일화를 시켜서 이러한 코드포맷으로 인한 코드 충돌을 해결하고자 합니다.

🧐 기능 구현 내용(Optional)


맞춰야할 주제

.prettierrc 파일

{
  "singleQuote": false,
  "trailingComma": "all",
  "endOfLine": "auto",
  "semi": true,
  "printWidth": 80,
  "arrowParens": "avoid"
}

eslintrc.js

module.exports = {
  parser: "@typescript-eslint/parser",
  parserOptions: {
    project: "tsconfig.json",
    tsconfigRootDir: __dirname,
    sourceType: "module",
  },
  plugins: ["@typescript-eslint/eslint-plugin"],
  extends: ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
  root: true,
  env: {
    node: true,
    jest: true,
  },
  ignorePatterns: [".eslintrc.js"],
  rules: {
    "@typescript-eslint/interface-name-prefix": "off",
    "@typescript-eslint/explicit-function-return-type": "off",
    "@typescript-eslint/explicit-module-boundary-types": "off",
    "@typescript-eslint/no-explicit-any": "off",
    "@typescript-eslint/ban-ts-comment": "off",
    // semi: ["error", "always"], // 세미콜론을 항상 사용하도록 설정
    // quotes: ["error", "single"], // 싱글 쿼트를 사용하도록 설정
  },
};

package.json 내 prettier 포맷팅 자동적용 명령어

$ npm run format

📭 이슈 번호


32

🖐️ 의견 구하기


위에 저희가 오늘 10시에 디코온라인회의에 만나서 해야할 주제들을 정리해봤습니다!

loveAlakazam commented 3 months ago

@lullaaaby13 내일 확인하고 머지눌러주세용~ 슬랙 폭파전에 가져가야할 슬랙메시지기록같은거 입니다.

lullaaaby13 commented 3 months ago

어제 중요한 정보는 백업해주셨고 저도 딱히 없는 것 같아서 바로 머지하겠습니다 😃