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

@bwt-st/eslint

v0.2.1

Published

BWT-ST shared ESLint Flat Config.

Readme

@bwt-st/eslint

面向现代前端项目的 ESLint Flat Config。包提供基础、Vue 和 React 三个入口,适用于 ESLint 9 及以上版本。

安装

pnpm add -D @bwt-st/eslint eslint

项目需要使用 ESLint Flat Config,在根目录创建 eslint.config.js。

配置入口

| 入口 | 适用项目 | 已包含内容 | | ---------------------- | ------------------------------- | -------------------------------------------------- | | @bwt-st/eslint | 通用 JavaScript/TypeScript 项目 | ESLint 推荐规则、TypeScript 推荐规则和基础全局变量 | | @bwt-st/eslint/vue | Vue 项目 | 基础配置、Vue Flat Essential 规则和 .vue 解析器 | | @bwt-st/eslint/react | React 项目 | 基础配置和 JSX/TSX 解析支持 |

Vue 和 React 入口已经包含基础配置,不需要同时展开基础入口。

通用项目

// eslint.config.js
import config from '@bwt-st/eslint'

export default config

Vue 项目

// eslint.config.js
import config from '@bwt-st/eslint/vue'

export default config

React 项目

// eslint.config.js
import config from '@bwt-st/eslint/react'

export default config

运行检查:

pnpm exec eslint .

规则与扩展

基础配置覆盖 js、mjs、cjs、ts、tsx 和 jsx 文件,并将 no-console、no-debugger 设置为警告。默认忽略 dist、node_modules、coverage 和 VitePress 构建目录。

业务项目可以在共享配置后追加自己的规则:

import config from '@bwt-st/eslint'

export default [
  ...config,
  {
    rules: {
      'no-console': 'off',
    },
  },
]

React 入口只提供 JSX/TSX 解析和基础规则,不内置 React Hooks、React Refresh 等业务生态插件;需要时请由业务项目按版本自行添加。

兼容性

  • Node.js >=20.19.0
  • ESLint ^9.0.0 || ^10.0.0
  • 使用 ESM 配置文件和 Flat Config