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

@wuipkg/lint

v2.0.3

Published

集中与收拢管理公司前端项目的代码体检(ESLint)以及格式化化(Prettier)规则底座包。采用目前 ESLint 10 推行的全新 Flat Config 机制实现 Vue + Typescript 生态全包覆。

Readme

@wuipkg/lint

集中与收拢管理公司前端项目的代码体检(ESLint)以及格式化化(Prettier)规则底座包。采用目前 ESLint 10 推行的全新 Flat Config 机制实现 Vue + Typescript 生态全包覆。

安装

pnpm install @wuipkg/lint -D

导出配置与说明

1. eslint.js (项目通用 ESLint 配置引擎)

融合汇聚了 js.configs.recommended / vue/flat/essential / tsPlugin/flat/recommended 等业内最佳实践标杆,并且为避免重构旧项目产生“报错地狱”,进行了微调豁免。

常规业务项目引入样例:
您需要在您工程根部的 eslint.config.js 或者 eslint.config.cjs 内接引入并使用该项:

// eslint.config.js
import wuipkgLint from '@wuipkg/lint/eslint'

export default [
  // 1. 打平接入核心预设底座库约束与支持解析环境
  ...wuipkgLint,
  
  // 2. 项目自身的局部补充复盖(如果不涉及可以直接删除)
  {
    rules: {
      // 譬如项目允许暴露 console 不拦截为报错:
      'no-console': 'warn'
    }
  }
]

本规范核心特性与部分预置豁免记录:

  • 关闭了 @typescript-eslint/no-explicit-any:为了不引发业务强迫症报错死循环,准入放宽使用 any 挂线流。
  • 放宽 @typescript-eslint/no-unused-vars 准入基线等级机制,允许特例以下划线 _ 开头的无实际消费的预位符入参通过检测约束。
  • 强制关停了 arrow-body-styleprefer-arrow-callback 以融合避免与 Prettier 的互相碰撞及格式相互踩踏冲突。

2. prettier.js (统一规范排版机制)

直接引用了导出集并交由标准化 Prettier 内核统一规范执行诸如单引/间距等整个大厂架构的缩略形态标准设定配置。

样式强制约束加载使用:
在项目的 .prettierrc.js 中使用直接全集扩展引入并导出合并设定:

// .prettierrc.js
const prettierBase = require('@wuipkg/lint/prettier')

module.exports = {
  ...prettierBase,

  // 个别如果真的因为过长需要修改可以在此处盖帽特俗对待重命(无特殊需求均免改保持和 base 一致排齐)
  printWidth: 100 
}