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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@particle-network/eslint-config

v0.3.0

Published

particle network eslint config, used by particle network FE team

Readme

@particle-network/eslint-config

📦 关于

这是 UniversalX Design System 的 ESLint 共享配置包,提供一致的代码规范,确保整个项目的代码质量。

特性

  • 🎯 多场景配置 - 针对不同项目类型的优化配置
  • 📱 跨平台支持 - 支持 React、React Native、Node.js
  • 🛡 TypeScript - 完整的 TypeScript 规则支持
  • 🎨 代码风格 - 统一的代码格式化规则
  • 性能优化 - 包含性能相关的最佳实践规则
  • 🔧 易于扩展 - 灵活的配置,可按需定制

🚀 使用方法

安装

⚠️ 注意:这是一个内部包,在 Monorepo 中的项目会自动引用。

对于外部项目:

# npm
npm install --save-dev @particle-network/eslint-config

# yarn
yarn add -D @particle-network/eslint-config

# pnpm
pnpm add -D @particle-network/eslint-config

配置

在项目的 eslint.config.js 中使用:

// ESLint 9.x 扁平配置
import { getESLintConfig } from '@particle-network/eslint-config';
import { defineConfig } from 'eslint/config';

const config = [
  ...getESLintConfig({
    //
  }),
  // 自定义配置
];

export default defineConfig(config);

🛠 开发

项目结构

packages/eslint-config/
├── src/
│   ├── configs/
│   │   ├── base.js        # 基础配置
│   │   ├── react.js       # React 配置
│   │   ├── react-native.js # React Native 配置
│   │   ├── node.js        # Node.js 配置
│   │   └── typescript.js  # TypeScript 配置
│   ├── constants.js       # 共享常量
│   └── index.js          # 导出入口
├── eslint.config.js      # 自身的 ESLint 配置
└── package.json

添加新规则

  1. 在相应的配置文件中添加规则
  2. 测试规则效果
  3. 更新文档
  4. 提交变更
// src/configs/base.js
export default {
  rules: {
    // 添加新规则
    'new-rule': 'error',
  },
};

🔄 版本管理

遵循语义化版本:

  • 主版本: 破坏性变更(如删除规则、更改错误级别)
  • 次版本: 新增功能(如添加新规则、新配置)
  • 修订版本: 问题修复(如规则调整、文档更新)

📊 规则严格程度

我们使用三个级别的规则严格程度:

| 级别 | 说明 | 使用场景 | | ------- | -------- | -------------------- | | error | 必须修复 | 可能导致错误的代码 | | warn | 建议修复 | 代码质量问题 | | off | 关闭 | 不适用或有争议的规则 |

🔗 相关链接