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

lint-setup-cli

v0.2.0

Published

ESLint/Prettier 및 VS Code 설정을 자동 구성하는 설치 헬퍼 CLI

Readme

lint-setup-cli

React / Next.js + TypeScript 환경에서 ESLint / Prettier / VS Code 설정을 한 번에 세팅해 주는 CLI입니다.
템플릿 파일을 복사·병합해서, 즉시 사용할 수 있는 Lint/Format 환경을 구성합니다.

  • 템플릿 스타일
    • flat-config: eslint.config.mjs (ESLint 9 Flat Config)
    • eslintrc: .eslintrc.json (Legacy .eslintrc 스타일)
  • 프로젝트 타입
    • next
  • VS Code
    • .vscode/settings.json
    • .vscode/extensions.json

설치

npx lint-setup-cli --type next --template flat-config

사용법

기본 명령

npx lint-setup-cli \
  --type next \
  --template [flat-config|eslintrc] \
  [--version 14|15|latest] \
  [--on-exists skip|keep|overwrite]
  • --type

    • next: Next.js 프로젝트용 규칙 (기본값)
  • --version

    • 14: Next 14용 eslintrc 템플릿 (templates/eslintrc/next@14)
    • 15: Next 15용 flat-config 템플릿 (templates/flat-config/next@15)
    • latest: 최신 Next용 flat-config 템플릿 (templates/flat-config/next@latest)
    • 생략 시 기본값:
      • --template eslintrc14
      • --template flat-configlatest
  • --template

    • flat-config: eslint.config.mjs (기본값)
    • eslintrc: .eslintrc.json
  • --on-exists (기존 설정 파일 처리 방식)

    • overwrite: 기존 설정 파일을 템플릿 기준으로 교체 (기본값)
    • keep:
      • 기존 설정 파일을 유지하고,
      • 새 설정 파일은 src/config/* 또는 config/* 아래에 생성
    • skip:
      • 이미 존재하는 설정 파일은 건너뜀

--on-exists를 생략하면, TTY 환경에서 설정 옵션이 나타납니다:

[eslint-config] 이미 존재하는 설정 파일(.eslintrc, eslint.config, prettier 등)이 있을 때의 동작을 선택하세요.
  [s] skip      - 중복 설정 파일은 건너뜀
  [k] keep      - 기존 설정 파일은 그대로 두고, 새로운 설정 파일 생성
  [o] overwrite - (추천) 기존 설정 파일을 덮어씀
선택 (s/k/o) [o]:

예시

# 1) eslintrc 기반 Next 14
npx lint-setup-cli --type next --template eslintrc --version 14

# 2) Flat Config 기반 Next 15
npx lint-setup-cli --type next --template flat-config --version 15

# 3) Flat Config 기반 Next 최신 (버전 생략 시 latest)
npx lint-setup-cli --type next --template flat-config

설정 파일 구성

1. ESLint

  • --template flat-config

    • eslint.config.mjs
  • --template eslintrc

    • .eslintrc.json

2. Prettier

  • --template flat-config

    • prettier.config.cjs
  • --template eslintrc

    • .prettierrc

3. package.json

선택한 템플릿 디렉터리의 package.json에서 devDependencies 읽어서 현재 프로젝트의 package.json에 병합합니다.

  • 템플릿에만 존재하는 패키지 → devDependencies에 추가
  • 이미 존재하는 패키지 → 그대로 유지

실제 ESLint / Prettier / 플러그인 설치는 npm install 또는 pnpm install 등을 사용해 직접 진행해야 합니다.

4. VS Code 설정

  • .vscode/settings.json

    • "editor.formatOnSave": true → 파일 저장 시 자동으로 코드 포맷
    • "editor.defaultFormatter": "dbaeumer.vscode-eslint" → ESLint를 기본 포매터로 사용
  • .vscode/extensions.json

    • dbaeumer.vscode-eslint → ESLint 확장
    • esbenp.prettier-vscode → Prettier 포매터 확장
    • streetsidesoftware.code-spell-checker → 코드/텍스트 철자 검사 확장