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

team-eslint-config

v1.0.33

Published

Team ESLint and Prettier configuration for Vue, Nuxt, and WXT projects

Downloads

12

Readme

Team ESLint Config

团队统一的代码规范和格式化配置,支持 Vue 3、Nuxt 3 和 WXT 项目。

系统要求

  • Node.js >= 18.0.0
  • npm >= 9.0.0 或 pnpm >= 8.0.0

特性

  • ESLint 配置
  • Prettier 格式化
  • TypeScript 类型检查
  • Git Hooks (husky)
  • 提交信息规范 (commitlint)
  • 交互式提交 (commitizen)
  • VS Code 集成

安装

npm install --save-dev team-eslint-config

Vue 项目

npx team-eslint-config vue

Nuxt 项目

npx team-eslint-config nuxt

WXT 项目

npx team-eslint-config wxt

使用

安装完成后,你可以使用以下命令:

  • npm run dev - 启动开发服务器(包含实时 ESLint 检查)
  • npm run lint - 检查代码风格
  • npm run lint:fix - 自动修复代码风格问题
  • npm run format - 使用 Prettier 格式化代码

VS Code 集成

安装后会自动配置 VS Code 设置和推荐扩展。建议安装以下扩展:

  • ESLint
  • Prettier
  • Vue - Official
  • TypeScript Vue Plugin
  • Error Lens
  • EditorConfig

Git Hooks

安装后会自动配置 Git pre-commit hook,在提交代码前自动检查和修复代码风格问题。

严格模式

此配置启用了以下严格检查:

TypeScript 严格检查

  • strict: true
  • noImplicitAny: true
  • strictNullChecks: true
  • strictFunctionTypes: true
  • strictBindCallApply: true
  • strictPropertyInitialization: true
  • noImplicitThis: true
  • alwaysStrict: true
  • noUnusedLocals: true
  • noUnusedParameters: true
  • noImplicitReturns: true
  • noFallthroughCasesInSwitch: true

ESLint 严格规则

  • @typescript-eslint/no-explicit-any: error
  • @typescript-eslint/explicit-module-boundary-types: error
  • @typescript-eslint/no-unused-vars: error
  • @typescript-eslint/no-non-null-assertion: error
  • @typescript-eslint/strict-boolean-expressions: error
  • @typescript-eslint/no-floating-promises: error

开发模式

在开发模式下,错误会实时显示在终端和编辑器中:

发布到 NPM

  1. 更新 package.json 中的版本号
  2. 运行 npm run build 构建项目
  3. 运行 npm publish 发布到 NPM

贡献

欢迎提交问题和 PR,共同维护团队代码规范。

许可证

MIT

注意事项

  1. 更新依赖后请运行测试确保功能正常
  2. 如果只想更新小版本,使用 ncu --target minor
  3. 如果想交互式选择更新,使用 ncu --interactive