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

@rjgfny/config

v0.1.0

Published

rjgfNY 工程规范包:ESLint、TypeScript、Prettier、Commitlint、构建约定

Readme

@rjgfny/config

rjgfNY 工程规范包:统一 ESLint、TypeScript、Prettier、Commitlint 与构建约定。

安装

pnpm add -D @rjgfny/config eslint

提交规范(可选):

pnpm add -D husky @commitlint/cli
pnpm exec husky init

快速接入(Vue 子项目)

ESLint

.eslintrc.cjs

module.exports = require('@rjgfny/config/eslint/vue')

TypeScript

tsconfig.json

{
  "extends": "@rjgfny/config/typescript/vue-app"
}

tsconfig.node.json

{
  "extends": "@rjgfny/config/typescript/base",
  "compilerOptions": {
    "composite": true,
    "moduleResolution": "bundler",
    "allowSyntheticDefaultImports": true,
    "noEmit": true
  },
  "include": ["vite.config.ts"]
}

Prettier

prettier.config.cjs

module.exports = require('@rjgfny/config/prettier')

Commitlint

commitlint.config.cjs

module.exports = require('@rjgfny/config/commitlint')

.husky/commit-msg

npx --no -- commitlint --edit "$1"

可直接复制 templates/ 目录下的示例文件到业务项目根目录。


导出清单

| 路径 | 用途 | |------|------| | @rjgfny/config/eslint | Vue3 + TS 默认 ESLint | | @rjgfny/config/eslint/base | 基础 Node/TS 规则 | | @rjgfny/config/eslint/vue | Vue3 业务项目 | | @rjgfny/config/typescript/base | TS 基础 | | @rjgfny/config/typescript/vue-app | Vite + Vue 应用 | | @rjgfny/config/typescript/node-lib | Node/工具库 | | @rjgfny/config/prettier | Prettier 统一格式 | | @rjgfny/config/commitlint | Conventional Commits |


构建与脚本约定(团队统一)

业务子项目 package.json 建议包含:

{
  "scripts": {
    "dev": "vite",
    "build": "vue-tsc -b && vite build",
    "preview": "vite preview",
    "typecheck": "vue-tsc -b --pretty false",
    "lint": "eslint . --ext .ts,.tsx,.vue",
    "lint:fix": "eslint . --ext .ts,.tsx,.vue --fix",
    "format": "prettier --write ."
  }
}

约定说明

| 项 | 约定 | |----|------| | 包管理器 | 优先 pnpm | | 分支 | main 保护,feat/* fix/* 开发 | | 提交格式 | type(scope): subject,如 feat(table): 支持后端分页 | | 发布前 | typecheck + lint + build 全通过 | | 环境变量 | .env.development / .env.production,敏感信息不入库 |

Commit type

  • feat 新功能
  • fix 修复
  • docs 文档
  • style 格式(不影响逻辑)
  • refactor 重构
  • perf 性能
  • test 测试
  • build 构建/依赖
  • ci CI 配置
  • chore 杂项
  • revert 回滚

发布

cd D:\rjgfCode\rjgfNYConfig
npm pack --dry-run
npm publish --access public

files 白名单发布,不包含 node_modules