
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@naverpay/eslint-plugin
Advanced tools
네이버페이 스타일 가이드에 추가 기능을 제공하는 플러그인 패키지
npm install @naverpay/eslint-plugin -D
사용하고 싶은 rule이 있다면 eslint.config.js에 아래와 같이 설정해주세요:
// 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을 통해 자동 수정이 가능합니다.
| Name | Description | 🔧 |
|---|---|---|
| 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-deps | package.json에서 동작하는 규칙으로, peerDependencies 에 있는 패키지가 devDependencies 에 선언되어 있지 않다면 에러를 발생시킵니다. | |
| cognitive-complexity | 함수의 Cognitive Complexity가 임계값을 초과하면 라인별 점수 상세와 리팩토링 제안을 포함하여 보고합니다. |
FAQs
Did you know?

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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.