1.0.0 • Published 10 days ago

@naverpay/eslint-plugin v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
10 days ago

@naverpay/eslint-plugin

네이버페이 스타일 가이드에 추가 기능을 제공하는 플러그인 패키지

설치 방법

npm install @naverpay/eslint-plugin -D

사용 방법

사용하고 싶은 plugin이 있다면 eslint config 파일에서 @naverpay/eslint-pluginplugins에 추가하세요.

// .eslintrc
{
  "plugins": ["@naverpay/eslint-plugin"]
}

사용하고 싶은 plugin은 rules에 적용해주세요.

// .eslintrc
{
  "rules": {
    "@naverpay/prevent-default-import": ["error", {"packages": ["react"]}],
  }
}

규칙

🔧: --fix CLI option을 통해 자동 수정이 가능합니다.

NameDescription🔧
memo-react-components주어진 경로의 React 컴포넌트들을 자동으로 memoize 합니다.🔧
prevent-default-import패키지 목록을 받아, 해당 패키지 default import를 금지합니다.🔧
sort-exports파일에 있는 모든 export 문을 정렬합니다.🔧
1.0.0

10 days ago

0.0.1

20 days ago