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

@kingsword/lint-config

v0.2.2

Published

Reusable oxlint presets + self-owned ESLint-compatible JS plugin rules.

Readme

@kingsword/lint-config

可复用的 oxlint 配置与 @kingsword/* 规则插件。

要求:oxlint >= 1.50.0

安装

npm i -D oxlint @kingsword/lint-config

推荐用法(CLI 生成)

# 生成 oxlint.config.ts(默认 lib + none + recommended)
npx xlint init lib

# 更严格示例
npx xlint init fullstack --test vitest --level strict

生成后执行:

npx oxlint .

手写配置

import { defineConfig } from "oxlint";
import { oxlint } from "@kingsword/lint-config/config";

export default defineConfig(
  oxlint({
    profile: "lib",
    test: "none",
    level: "recommended",
  }),
);

参数说明

  • profile: base | lib | react | backend | fullstack
  • test: none | vitest
  • level: recommended | strict

oxlint() 无参数时,默认使用最严格推荐档(fullstack-vitest-strict)。

1.50 升级重点

  • vitest-strict 默认启用 vitest/prefer-import-in-mock
  • vitest-strict 默认启用 no-use-before-define
  • vitest-strict 默认启用 no-shadow
  • vitest-strict 默认启用 no-unmodified-loop-condition
  • vitest-strict 默认启用 unicorn/prefer-module
  • vitest-strict 默认启用 node/no-path-concat
  • vitest-strict 不默认强制 Vitest globals/import 二选一(减少与不同项目测试风格的冲突)
  • base 默认启用 typescript/consistent-type-assertions
  • frontend 默认启用 unicorn/relative-url-style
  • vitest 默认启用 vitest/prefer-expect-type-of
  • oxlint.config.tsextends 需使用“配置对象数组”,不再支持字符串路径

规则文档

  • docs/rules.zh-CN.md
  • 文档已包含:自研 @kingsword/* 全部规则、内置规则(含 off 项)与 overrides 的完整中文说明

开发验证夹具(Smoke Fixtures)

仓库内用于 lint:* 脚本的最小验证样例位于:test/fixtures/smoke

  • base: test/fixtures/smoke/base/baseCase.ts
  • recommended: test/fixtures/smoke/recommended/recommendedCase.ts
  • frontend: test/fixtures/smoke/frontend/frontendCase.ts
  • backend: test/fixtures/smoke/backend/backendCase.ts
  • fullstack: test/fixtures/smoke/fullstack/fullstackCase.ts
  • vitest / vitest:strict: test/fixtures/smoke/vitest/vitestCase.ts

说明:

  • 这些夹具是“应当通过”的 smoke 用例,保持最小、稳定、可读。
  • 规则触发/报错类断言放在 test/plugin.test.js 的场景测试中维护。