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

oxlint-config-raccoon

v10.7.0

Published

Artem Sapegin’s Oxlint and Oxfmt config

Readme

oxlint-config-raccoon

npm Node.js CI status

Shared Oxlint and Oxfmt configurations that I use on all my projects.

  • All linter presets rely on Oxlint’s built-in plugins (eslint, unicorn, vitest, import, jsdoc, promise, typescript, react, and jsx-a11y where appropriate).
  • Type-aware TypeScript rules are provided through oxlint-tsgolint.
  • Tailwind CSS support is opt-in through oxlint-tailwindcss. The formatter preset uses Oxfmt’s built-in import, package.json, and Tailwind class sorting.

Presets

| Preset | Extends | Adds | | --- | --- | --- | | oxlint-config-raccoon/base | — | JavaScript baseline (core + Unicorn + Vitest) | | oxlint-config-raccoon/typescript | base | typescript plugin and type-aware rules | | oxlint-config-raccoon/typescript-react | typescript | react and jsx-a11y plugins | | oxlint-config-raccoon/typescript-react-tailwind | typescript-react | oxlint-tailwindcss JS plugin | | oxlint-config-raccoon/oxfmt | — | Oxfmt formatter preset |

Installation

npm install --save-dev oxlint oxlint-tsgolint oxfmt oxlint-config-raccoon

For the Tailwind preset, also install:

npm install --save-dev oxlint-tailwindcss @oxlint/plugins

Usage

Oxlint

JavaScript

Create oxlint.config.ts:

import { defineConfig } from 'oxlint';
import base from 'oxlint-config-raccoon/base';

export default defineConfig({
  extends: [base]
});

To ignore files:

import { defineConfig } from 'oxlint';
import base from 'oxlint-config-raccoon/base';

export default defineConfig({
  extends: [base],
  ignorePatterns: ['plugins/*/main.js']
});

TypeScript

Create oxlint.config.ts:

import { defineConfig } from 'oxlint';
import typescript from 'oxlint-config-raccoon/typescript';

export default defineConfig({
  extends: [typescript],
  options: { typeAware: true, typeCheck: true }
});

[!IMPORTANT]
options.typeAware and options.typeCheck are only honoured in the root config file, so the presets do not set them — you must enable type-aware linting yourself when extending the typescript, typescript-react, or typescript-react-tailwind presets.

[!IMPORTANT]
Type-aware linting requires tsconfig.json and TypeScript 7+ via typescript-go; some legacy options like baseUrl are not supported. See the Oxlint type-aware guide.

React

Create oxlint.config.ts:

import { defineConfig } from 'oxlint';
import typescriptReact from 'oxlint-config-raccoon/typescript-react';

export default defineConfig({
  extends: [typescriptReact],
  options: { typeAware: true, typeCheck: true }
});

Tailwind CSS

The Tailwind lint preset targets Tailwind CSS v4 (the constraint comes from oxlint-tailwindcss). Tell the plugin where to find your Tailwind entry point in your root config:

import { defineConfig } from 'oxlint';
import typescriptReactTailwind from 'oxlint-config-raccoon/typescript-react-tailwind';

export default defineConfig({
  extends: [typescriptReactTailwind],
  options: { typeAware: true, typeCheck: true },
  settings: {
    tailwindcss: {
      entryPoint: 'src/styles/app.css'
    }
  }
});

Class sorting is intentionally left to Oxfmt (sortTailwindcss in oxfmt.config.ts) to avoid two tools fighting over the order.

Oxfmt

Create oxfmt.config.ts:

import { defineConfig } from 'oxfmt';
import oxfmt from 'oxlint-config-raccoon/oxfmt';

export default defineConfig(oxfmt);

To ignore files:

import { defineConfig } from 'oxfmt';
import oxfmt from 'oxlint-config-raccoon/oxfmt';

export default defineConfig({
  ...oxfmt,
  ignorePatterns: ['plugins/*/main.js']
});

Npm scripts

package.json:

{
  "scripts": {
    "test": "oxlint --fix && vitest run",
    "lint": "oxlint --fix",
    "format": "oxfmt"
  }
}

Editor setup

.vscode/settings.json:

{
  "editor.defaultFormatter": "oxc.oxc-vscode",
  "editor.codeActionsOnSave": {
    "source.format.oxc": "always",
    "source.fixAll.oxc": "always"
  }
}

.vscode/extensions.json:

{
  "recommendations": ["oxc.oxc-vscode"]
}

Code style at a glance

  • Two-space indentation.
  • Single quotes, semicolons, 80-char lines (enforced by Oxfmt).
  • Declare variables just before their first use.
  • One variable per const/let statement; no var.
  • Strict equality (===, !==).
  • Return early.
function eatFood(food) {
  if (food.length === 0) {
    return ['No food'];
  }

  return food.map(dish => `No ${dish.toLowerCase()}`);
}

const food = ['Pizza', 'Burger', 'Coffee'];
console.log(eatFood(food));