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

@aelita-dev/oxlint-config

v3.0.2

Published

Aelita's OXLint config

Readme

@aelita-dev/oxlint-config

An opinionated Oxlint config for modern JavaScript and TypeScript projects.

This config enables a curated set of rules explicitly, while disabling Oxlint's category defaults.

Install

pnpm add -D oxlint @aelita-dev/oxlint-config

Oxlint is a peer dependency, so install it alongside this package.

This package is ESM-only. Use import rather than CommonJS require().

Usage

Create oxlint.config.ts:

import { defineConfig } from '@aelita-dev/oxlint-config'

export default defineConfig()

Add scripts to package.json:

{
  "scripts": {
    "lint": "oxlint",
    "lint:fix": "oxlint --fix"
  }
}

Run:

pnpm lint
pnpm lint:fix

Philosophy

This package is intentionally explicit:

  • Oxlint rule categories are disabled by default.
  • Only rules selected by this config are enabled.
  • Native Oxlint plugins are preferred when available.
  • JavaScript ESLint plugins are used where Oxlint does not yet provide an equivalent rule or option.
  • TypeScript, React, Vue, Vitest, Playwright, and TanStack support are enabled automatically when the relevant packages are installed.

Configuration

import { defineConfig } from '@aelita-dev/oxlint-config'

export default defineConfig({
  options: {
    projectType: 'lib',
  },

  stylistic: {
    semi: false,
    quotes: 'single',
    indent: 2,
    commaDangle: 'always-multiline',
  },

  typescript: {
    enableTypeAwareRules: true,
  },

  react: false,
  playwright: false,
})

Project Type

export default defineConfig({
  options: {
    projectType: 'app',
  },
})

Available values:

  • app
  • lib

The default is app.

Feature Modules

Most modules accept either false to disable them, true to enable them with defaults, or an options object.

export default defineConfig({
  typescript: true,
  react: false,
  vitest: {
    settings: {
      typecheck: true,
    },
  },
})

Supported modules:

  • javascript
  • unicorn
  • node
  • import
  • stylistic
  • typescript
  • perfectionist
  • vue
  • react
  • jsxA11y
  • playwright
  • vitest
  • tanStackQuery
  • tanStackRouter

Automatic detection:

  • typescript is enabled when typescript is installed.
  • vue is enabled when Vue-related packages are installed.
  • react is enabled when React-related packages are installed.
  • jsxA11y follows React by default.
  • playwright is enabled when @playwright/test is installed.
  • vitest is enabled when vitest is installed.
  • tanStackQuery is enabled when @tanstack/query-core is installed.
  • tanStackRouter is enabled when @tanstack/router-core is installed.

Ignore Patterns

export default defineConfig({
  ignore: [
    'coverage',
    'fixtures',
  ],
})

Replace the default ignore patterns:

export default defineConfig({
  ignore: {
    patterns: ['dist'],
    replaceDefault: true,
  },
})

Stylistic

export default defineConfig({
  stylistic: {
    semi: false,
    quotes: 'single',
    indent: 2,
    commaDangle: 'always-multiline',
    jsxPascalCaseIgnore: ['my-component'],
  },
})

Set stylistic: false to disable stylistic rules.

TypeScript

export default defineConfig({
  typescript: {
    enableTypeAwareRules: true,
    ruleOptions: {
      onlyThrowError: {
        allowThrowingUnknown: false,
      },
    },
  },
})

Type-aware rules are enabled by default when TypeScript support is enabled.

Perfectionist

export default defineConfig({
  perfectionist: {
    sortImports: {
      typeImportFirst: true,
      internalPatternSymbols: ['~'],
      partitionByNewLine: true,
      environment: 'node',
    },
  },
})

Overrides

Use Oxlint overrides for file-specific rule changes:

export default defineConfig({
  overrides: [
    {
      files: ['scripts/**/*.ts'],
      rules: {
        'no-console': 'off',
      },
    },
  ],
})

Oxlint Options

Pass through Oxlint's options field with oxlintOptions:

export default defineConfig({
  oxlintOptions: {
    reportUnusedDisableDirectives: 'warn',
    respectEslintDisableDirectives: true,
  },
})

Default Rule Categories

Oxlint enables some categories by default, especially correctness. This config turns every category off:

categories: {
  correctness: 'off',
  nursery: 'off',
  pedantic: 'off',
  perf: 'off',
  restriction: 'off',
  style: 'off',
  suspicious: 'off',
}

Individual rules configured by this package still work because Oxlint lets rules override categories.

This avoids accidental defaults from enabled plugins, while keeping plugin rules available for explicit use.

Exported Utilities

The package also exports common glob constants:

import {
  GLOB_SRC,
  GLOB_TS,
  GLOB_TSX,
  GLOB_TESTS,
} from '@aelita-dev/oxlint-config'

Development

pnpm install
pnpm run typecheck
pnpm run lint
pnpm run build

Before packaging, prepack runs the build so the published package contains dist.

License

MIT