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

@climatiq/oxc-presets

v1.0.0

Published

Oxc onfiguration (oxlint, oxfmt) for Climatiq projects

Readme

Climatiq Oxc Config Presets

This package provides Climatiq's oxlint & oxfmt configuration as a base config for any project in Climatiq. It includes configurations for React, Next.js, TypeScript, etc.

Installation

npm install --save-dev @climatiq/oxc-presets

or with yarn:

yarn add --dev @climatiq/oxc-presets

or with pnpm:

pnpm add -D @climatiq/oxc-presets

Usage

Oxlint

Install Oxlint alongside this package (it is listed in peerDependencies), as well as oxlint-tsgolint for type-aware linting.

The clsx/cn rules ship with this package as an Oxlint JS plugin, so there is nothing else to install for them — see lint-rules/.

Create an .oxlintrc.json file in your project root with the following content:

{
    "$schema": "./node_modules/oxlint/configuration_schema.json",
    "extends": ["./node_modules/@climatiq/oxc-presets/oxlint-config.json"],
}

If you want to opt-out of type-aware linting, don't install oxlint-tsgolint and add the following to your oxlint config:

{
    "$schema": "./node_modules/oxlint/configuration_schema.json",
    "extends": ["./node_modules/@climatiq/oxc-presets/oxlint-config.json"],
    "options": {
        "typeAware": false,
    },
}

Oxfmt

Install Oxfmt alongside this package (it is listed in peerDependencies).

The @climatiq/oxc-presets/oxfmt entry resolves to a plain .js preset (this package uses "type": "module") so Node does not need to strip TypeScript from files under node_modules when you extend it.

Create an oxfmt.config.ts file in your project root:

import { defineConfig } from 'oxfmt';
import climatiqOxfmt from '@climatiq/oxc-presets/oxfmt';

export default defineConfig({
    ...climatiqOxfmt,
    printWidth: 100,
    // or any other overrides
});

Oxfmt does not have an extends field; spreading the preset and setting any top-level option afterward is how you override it (same idea for ignorePatterns: spread climatiqOxfmt.ignorePatterns and append paths).

What's Included

Oxlint

The Oxlint config includes:

  • Next.js rules
  • React rules
  • TypeScript rules
  • clsx/cn rules, bundled as an Oxlint JS plugin — see lint-rules/
  • Unused imports detection and auto-removal
  • Sensible defaults for TypeScript projects

clsx/cn rules

The clsx/* rules are copied from eslint-plugin-clsx (MIT) and converted to Oxlint's JS plugin API, so consumers do not need eslint-plugin-clsx installed. Which modules count as clsx is configured through settings.clsxOptions; this preset ships with:

{
    "settings": {
        "clsxOptions": {
            "clsx": ["default", "clsx"],
            "classnames": ["default"],
            "@/src/lib/utils": ["cn"],
        },
    },
}

Oxlint does not currently inherit settings through extends, so the same map is also the plugin's built-in default: clsx, classnames and cn are covered out of the box, with no configuration on your side. Add your own settings.clsxOptions block only if your cn helper lives somewhere else — note that it replaces the default rather than extending it, so re-list clsx and classnames if you still want them covered.

Full rule documentation is in lint-rules/index.md.

Oxfmt

The Oxfmt config includes:

  • 1 Indentation = 4 spaces
  • single-quotes
  • semis
  • trailing commas
  • Sorting for Tailwind classes enabled

License

MIT

Release process

To publish a new release, just create a new Release on the GitHub Repo Releases page with the new version.

The GitHub Actions workflow release.yaml will tag the new version and publish it to npm.

Therefore, the version in the package.json does not necessarily reflect the current version of the package.