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

rsbuild-plugin-rslint

v0.1.3

Published

Rslint plugin for Rsbuild

Readme

rsbuild-plugin-rslint

Rslint 集成到 Rsbuild 构建流程的插件。

Rslint 是 Rsbuild 官方的 Linter,基于 Rust 编写,同时支持 JavaScript / TypeScript 的 Lint 与类型检查(Type Check)。本插件将它无缝接入 Rsbuild dev server,让开发者在保存代码时即可看到结果。

✨ 特性

  • 🚀 原生高速: 基于 Rust 编写的 Linter
  • 🧠 类型检查支持: 可开启 --type-check 进行 TS 类型检查(默认开启)
  • 💡 实时反馈: 保存文件即触发 Lint,结果同步到终端与浏览器 Overlay
  • 🎛️ 高度可配: 支持通过 rslint.config.* 自定义规则

📦 安装

npm add rsbuild-plugin-rslint -D
# 或
pnpm add rsbuild-plugin-rslint -D
# 或
yarn add rsbuild-plugin-rslint -D

🚀 使用

// rsbuild.config.ts
import { defineConfig } from '@rsbuild/core';
import { linterPlugin } from 'rsbuild-plugin-rslint';

export default defineConfig({
  plugins: [linterPlugin()],
});

启动开发服务器:

npm run dev

⚙️ 配置

linterPlugin 支持以下选项:

| 选项 | 类型 | 默认值 | 描述 | | --------------- | --------- | -------- | ------------------------------------------------------------- | | path | string | - | 指定需要 Lint 的路径 | | configFile | string | - | 配置文件路径,传递给 -config | | rslintPath | string | - | 自定义 rslint 可执行文件路径 | | quiet | boolean | false | 静默模式 | | fix | boolean | false | 自动修复可修复的问题 | | failOnError | boolean | false | 有错误时让构建失败 | | failOnWarning | boolean | false | 有警告时让构建失败 | | lintOnStart | boolean | true | dev server 启动时是否立即执行 Lint | | typeCheck | boolean | true | 是否启用 TypeScript 类型检查 | | maxWarnings | boolean | - | 是否启用最大警告数限制 | | rule | string | - | 通过 --rule 指定单条规则配置 | | noColor | boolean | - | 禁用 ANSI 颜色输出 | | forceColor | boolean | - | 强制启用 ANSI 颜色输出 |

示例

import { defineConfig } from '@rsbuild/core';
import { linterPlugin } from 'rsbuild-plugin-rslint';

export default defineConfig({
  plugins: [
    linterPlugin({
      configFile: './rslint.config.js',
      typeCheck: true,
      failOnError: true,
      noColor: false,
    }),
  ],
});

🏗️ 开发

npm run build   # 构建
npm run dev     # 监听模式
npm run test    # 测试

本地调试可进入 playground/ 目录。

🪪 License

MIT.