New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@naverpay/eslint-plugin

Package Overview
Dependencies
Maintainers
8
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naverpay/eslint-plugin

eslint plugin for naverpay

latest
Source
npmnpm
Version
2.3.1
Version published
Weekly downloads
51
-81.79%
Maintainers
8
Weekly downloads
 
Created
Source

@naverpay/eslint-plugin

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

설치 방법

npm install @naverpay/eslint-plugin -D

사용 방법

사용하고 싶은 rule이 있다면 eslint.config.js에 아래와 같이 설정해주세요:

  • plugins에 @naverpay/eslint-plugin을 추가합니다.
  • rules에 사용하고 싶은 규칙을 설정합니다.
// eslint.config.js
import naverpay from "@naverpay/eslint-plugin";

export default [
    {
        plugins: {
            naverpay
        },
        rules: {
            // react 패키지에 대해 default import를 금지하는 규칙
            "naverpay/prevent-default-import": ["error", {"packages": ["react"]}]
        }
    }
];

규칙

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

NameDescription🔧
memo-react-components주어진 경로의 React 컴포넌트들을 자동으로 memoize 합니다.🔧
optimize-svg-components주어진 경로의 svg 컴포넌트들을 svgo 기반으로 최적화합니다.🔧
prevent-default-import패키지 목록을 받아, 해당 패키지 default import를 금지합니다.🔧
sort-exports파일에 있는 모든 export 문을 정렬합니다.🔧
svg-unique-id주어진 경로의 SVG 컴포넌트들에 고유한 id를 부여하는 HOC를 추가합니다.🔧
import-server-only주어진 경로의 파일에 server-only 패키지를 포함하도록 강제합니다.🔧
peer-deps-in-dev-depspackage.json에서 동작하는 규칙으로, peerDependencies 에 있는 패키지가 devDependencies 에 선언되어 있지 않다면 에러를 발생시킵니다.
cognitive-complexity함수의 Cognitive Complexity가 임계값을 초과하면 라인별 점수 상세와 리팩토링 제안을 포함하여 보고합니다.

Keywords

naverpay

FAQs

Package last updated on 16 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts