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
- consistent-import-extension: Normalize code-module import extensions for your runtime.
- require-import-extension: Require explicit extensions without guessing module resolution.
- no-eslint-disable-comments: Use Oxlint suppression directives instead of ESLint directives.
- no-jsx-script-tag: Avoid native script elements in JSX.
- no-let: Use const bindings instead of let.
- no-redundant-alias: Avoid aliases that only rename an existing value or type.
- no-string-style: Use JSX object styles instead of string styles.
- require-disable-reason: Require a reason for each Oxlint suppression.
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.