npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@seolhun/eslint-config

v2.2.0

Published

Eslint configuration with prettier for TypeScript, React, and Node.js

Readme

@seolhun/eslint-config

ESLint v9+ flat config for TypeScript, React, and Node.js projects with Prettier integration.

Features

  • ESLint v9+ flat config (ESM)
  • Modular: base (TS/Node) + react (FE) 분리
  • TypeScript support (@typescript-eslint)
  • React / React Hooks / JSX A11y support
  • Prettier integration
  • Perfectionist plugin (v5) for consistent code sorting

Requirements

  • Node.js >= 20
  • ESLint >= 9
  • TypeScript >= 5

Installation

pnpm add -D @seolhun/eslint-config eslint prettier typescript

FE (React) 프로젝트는 React 플러그인도 설치:

pnpm add -D eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y

Usage

FE (Next.js / React) - 전체 config

// eslint.config.js (or eslint.config.mjs for CJS projects)
import config from '@seolhun/eslint-config';

export default [
  ...config,
  {
    ignores: ['node_modules/**', '.next/**', 'dist/**'],
  },
];

BE (NestJS / Node.js) - base config만

React 플러그인 불필요. base만 사용:

// eslint.config.js (or eslint.config.mjs for CJS projects)
import baseConfig from '@seolhun/eslint-config/base';

export default [
  ...baseConfig,
  {
    ignores: ['node_modules/**', 'dist/**'],
  },
];

Modular 사용 (base + react 명시적 합성)

import baseConfig from '@seolhun/eslint-config/base';
import reactConfig from '@seolhun/eslint-config/react';

export default [
  ...baseConfig,
  ...reactConfig,
  {
    ignores: ['node_modules/**', 'dist/**'],
  },
];

Prettier

// prettier.config.js
export { default } from '@seolhun/eslint-config/prettier';

CJS 프로젝트 (type: "module" 없는 경우)

파일 확장자를 .mjs로 사용하면 ESM config 사용 가능:

// eslint.config.mjs
import baseConfig from '@seolhun/eslint-config/base';

export default [
  ...baseConfig,
  {
    ignores: ['node_modules/**', 'dist/**'],
  },
];

Exports

| Export | Description | Use Case | |--------|-------------|----------| | @seolhun/eslint-config | base + react 합성 | FE 프로젝트 (기본) | | @seolhun/eslint-config/base | TS + Prettier + Perfectionist | BE / 공통 라이브러리 | | @seolhun/eslint-config/react | React + Hooks + JSX A11y | FE additive | | @seolhun/eslint-config/prettier | Prettier config | Prettier 설정 |

Included Plugins

Base (./base)

  • @typescript-eslint - TypeScript linting
  • eslint-plugin-perfectionist (v5) - Code sorting
  • eslint-plugin-prettier - Prettier integration
  • eslint-config-prettier - Prettier conflict resolution

React (./react)

  • eslint-plugin-react - React rules
  • eslint-plugin-react-hooks - Hooks rules
  • eslint-plugin-jsx-a11y - Accessibility

Key Rules

Perfectionist Sorting

  • Imports: type > builtin/external > internal > parent/sibling > style > side-effect
  • Objects: Custom groups (react props, ids, keys, types, variants, scales, intents)
  • Classes: static > private > public, properties > constructor > methods
  • Enums/Exports: Natural alphabetical order

TypeScript

  • consistent-type-imports: Enforce import type with separate type imports
  • explicit-module-boundary-types: Disabled

Migration from v1 (ESLint 8)

  1. Remove .eslintrc.js / .eslintrc.cjs / .eslintignore
  2. Create eslint.config.js (or .mjs)
  3. Update dependencies:
    pnpm add -D @seolhun/eslint-config@latest eslint@^9 prettier@^3
  4. Add "type": "module" to package.json (or use .mjs extension)

License

MIT