Presets

TypeScript

8 local TypeScript rules and the shared native baseline.

Usage

import { defineConfig } from 'oxlint'
import typescript from '@totto2727/oxlint/typescript'

export default defineConfig({ extends: [typescript] })

The preset registers the plugin and enables the local rules below at error severity. Use @totto2727/oxlint/preset for both groups.

Shared native baseline

All presets include a pinned MIT port of Ultracite 7.12.3 native core and shared ignores. This baseline corresponds to ultracite/oxlint/core. Run Oxlint directly, without the full Ultracite CLI. Sources: native core configuration and Oxlint provider documentation.

All presets disable these native rules:

  • unicorn/prefer-bigint-literals: conflicts with the official Effect no-bigint-literals policy.
  • preserve-caught-error: requires native Error.cause instead of the local error field convention.
  • prefer-const: duplicates the broader local no-let rule.

Tests and application sources use the same rules. Presets exclude upstream per-file overrides and test-only exemptions. TypeScript and combined presets allow no-redundant-alias in **/*.gen.ts files. React and type-aware presets, JavaScript plugins and oxfmt integration require separate configuration.

Included local rules

Exceptions

The preset omits force-ts-extension to avoid duplicate reports. Extension normalization defaults to ts. Set mode js for JavaScript imports.

Keep additional exceptions narrow and give specific reasons.