1.0.0 • Published 2 years ago

@mybeautip-web/eslint-config v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@mybeautip-web/eslint-config

  1. eslint 의 수정은 최대한 피한다.
  2. 누구나 eslint 를 수정할 수 있으나 협의 후 수정한다.

사용방법

의존성 설치

기본적으로 아래와 같이 의존성이 설치되어야 한다.

package.json

{
  "devDependencies": {
    "@mybeautip-web/eslint-config": "*",
    "eslint": "8.22.0",
    "prettier": "^2.7.1"
  }
}

@mybeautip-web/eslint-config/base

airbnb/base 를 기반으로한 eslint 규칙을 적용합니다.

사용하려면 아래와 같이 .eslintrc.js 에 추가하세요.

extends: ['@mybeautip-web/eslint-config/base']

@mybeautip-web/eslint-config

@mybeautip-web/eslint-config/base 와 함께 react, react hooks 에 대한 규칙이 적용되어 있습니다.

사용하려면 아래와 같이 .eslintrc.js 에 추가하세요.

extends: ['@mybeautip-web/eslint-config']

@mybeautip-web/eslint-config/next

@mybeautip-web/eslint-config 에 추가로 next js 의 eslint 규칙이 적용돼있습니다.

사용하려면 아래와 같이 .eslintrc.js 에 추가하세요.

extends: ['@mybeautip-web/eslint-config/next']