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

@the1812/oxc-config

v1.0.3

Published

Personal OXC config.

Readme

@the1812/oxc-config

按照个人喜好 (@the1812) 配置的 OXC Config. 可用于 JavaScript 和 TypeScript 项目。

由于 OXC 暂不支持 Vue,Vue 项目目前只能通过 TSX 形式接受 OXC 检测。

安装

pnpm add -D @the1812/oxc-config oxlint oxfmt oxlint-tsgolint

Oxlint

在项目根目录创建 oxlint.config.ts:

import config from '@the1812/oxc-config/oxlint'
import { defineConfig } from 'oxlint'

export default defineConfig({
  extends: [config],
  categories: {
    correctness: 'off',
  },
  options: {
    typeAware: true,
    typeCheck: true,
  },
  ignorePatterns: ['dist/', 'node_modules/'],
})

Oxlint 的 extends 只继承规则、插件和覆盖项,因此 categories、options 与 ignorePatterns 必须由项目根配置显式设置。

Oxfmt

在项目根目录创建 oxfmt.config.ts:

import config from '@the1812/oxc-config/oxfmt'

export default config

需要增加项目特有的忽略项时:

import config from '@the1812/oxc-config/oxfmt'
import { defineConfig } from 'oxfmt'

export default defineConfig({
  ...config,
  ignorePatterns: [...config.ignorePatterns, 'generated/'],
})

Vite+

import oxfmtConfig from '@the1812/oxc-config/oxfmt'
import oxlintConfig from '@the1812/oxc-config/oxlint'
import { defineConfig } from 'vite-plus'

export default defineConfig({
  fmt: oxfmtConfig,
  lint: {
    ...oxlintConfig,
    categories: {
      correctness: 'off',
    },
    options: {
      typeAware: true,
      typeCheck: true,
    },
  },
})