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

@ianchoi/eslint-config-standard

v0.0.2

Published

ESLint standard configuration for JavaScript/TypeScript based on ESLint 9 Flat Config

Downloads

10

Readme

@ianchoi/eslint-config-standard

ESLint 标准配置包,基于 ESLint 9 Flat Config 格式。

特性

  • ✅ 基于 ESLint 9 Flat Config 格式
  • ✅ 支持 JavaScript/TypeScript
  • ✅ 集成 import-x 插件,提供导入规则检查
  • ✅ 强制驼峰命名规范
  • ✅ 自动检测未使用的变量
  • ✅ 模块导入顺序规范

安装

从 npm 安装(发布后)

npm install --save-dev @ianchoi/eslint-config-standard
# 或
pnpm add -D @ianchoi/eslint-config-standard
# 或
yarn add -D @ianchoi/eslint-config-standard

本地引用(开发/测试)

在 monorepo 中使用 workspace(pnpm)

如果使用 pnpm workspace,在根目录创建 pnpm-workspace.yaml

packages:
  - 'packages/*'

然后在其他包的 package.json 中:

{
  "devDependencies": {
    "@ianchoi/eslint-config-standard": "workspace:*",
    "eslint": "^9.0.0"
  }
}

使用方法

ESLint 9+ (Flat Config)

在你的 eslint.config.jseslint.config.mjs 文件中:

import standardConfig from '@ianchoi/eslint-config-standard'

export default [
  ...standardConfig,
  // 你的其他配置
]

依赖要求

  • ESLint >= 9.0.0

规则说明

代码规范

  • camelcase: 强制使用驼峰命名法
  • no-unused-vars: 禁止未使用的变量(支持 _ 前缀忽略)
  • prefer-promise-reject-errors: 要求使用 Error 对象作为 Promise 拒绝的原因
  • no-restricted-globals: 禁止使用特定的全局变量(如 isNaN,应使用 Number.isNaN

导入规范

  • import-x/no-extraneous-dependencies: 禁止导入未在 package.json 中声明的依赖
  • import-x/no-unresolved: 确保导入的模块可以被解析
  • import-x/order: 强制模块导入顺序规范
    • 内置模块 → 外部依赖 → 内部模块 → 父级/同级 → index → object → type
    • 自动按字母顺序排序
    • 组之间必须有空行

许可证

ISC