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

@uni-helper/eslint-config

v0.7.4

Published

Uni Helper's ESLint config

Downloads

6,727

Readme

基于 antfu/eslint-config,为 uni-app 项目提供开箱即用的 ESLint 配置。

  • uni-app 规则适配 — 关闭与 uni-app 冲突的 Vue 规则(如组件名大小写、自定义事件命名),自动注册 uniwxmytt 等平台全局变量
  • JSON 排序 — 按 uni-app 官方规范对 manifest.jsonpages.jsontheme.json 的键进行排序,保持配置文件一致性
  • 智能检测 — 安装了 @uni-helper/vite-plugin-uni-manifest@uni-helper/vite-plugin-uni-pages 时,自动跳过对应 JSON 文件的排序

安装

pnpm i -D eslint @antfu/eslint-config @uni-helper/eslint-config

使用

在项目根目录创建 eslint.config.mjs

// eslint.config.mjs
import uniHelper from '@uni-helper/eslint-config'

export default uniHelper()

package.json 中添加脚本:

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

选项

export default uniHelper({
  // 启用 uni-app 规则适配和全局变量,默认 true
  uni: true,
  // 启用 JSON 排序(manifest.json / pages.json / theme.json),默认 true
  uniJson: true,
})

所有 @antfu/eslint-config 选项 均可直接传递。

兼容性

建议始终使用 Node.js 最新的 LTS 版本。

| eslint | @antfu/eslint-config | @uni-helper/eslint-config | Node.js | 备注 | |--------|----------------------|---------------------------|---------|------| | ^10.0.0 | ^7.0.0 || ^8.0.0 || ^9.0.0 | ^0.7.3 | ^20.19.0 || ^21.x || >=23.x | 仅 ESM | | ^10.0.0 | ^7.0.0 | ^0.7.0 | ^20.19.0 || ^21.x || >=23.x | 仅 ESM | | ^9.10.0 | ^6.0.0 | ^0.6.0 | ^18.18.0 || ^20.9.0 || >=21.1.0 | 仅 ESM | | ^9.10.0 | ^5.0.0 | ^0.5.0 | ^18.18.0 || ^20.9.0 || >=21.1.0 | 仅 ESM | | ^9.10.0 | ^4.0.1 | ^0.4.0 | ^18.18.0 || ^20.9.0 || >=21.1.0 | 仅 ESM | | ^9.10.0 | ^3.13.0 | ^0.3.0 | ^18.18.0 || ^20.9.0 || >=21.1.0 | | | ^9.5.0 | ^3.0.0 ~ ^3.4.0 | ^0.2.0 | ^18.18.0 || ^20.9.0 || >=21.1.0 | | | ^8.40.0 | ^2.25.0 | ^0.1.0 | ^12.22.0 || ^14.17.0 || >=16.0.0 | |

相关资源

License

MIT © KeJun