Getting started

Getting started

Install the plugin, select a preset and run Oxlint.

Install

Use Node.js 24 or later. Install the plugin and Oxlint as development dependencies in your TypeScript project.

npm install --save-dev @totto2727/oxlint oxlint

Configure

Create an ESM .oxlintrc.mjs with a preset:

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

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

Use @totto2727/oxlint/effect for Effect, or @totto2727/oxlint/preset for both groups. Presets include the native Ultracite baseline and run directly with Oxlint. You do not need the Ultracite CLI or another Ultracite preset. React, type-aware rules, Ultracite JavaScript plugins and oxfmt integration require separate configuration.

To select individual rules, use .oxlintrc.json instead. This configuration does not include the native baseline:

{
  "jsPlugins": ["@totto2727/oxlint"],
  "rules": {
    "rules/require-import-extension": "error",
    "rules/consistent-import-extension": ["error", { "mode": "ts" }]
  }
}

The default plugin uses the rules/ namespace. The named exports typescriptRuleNames, effectRuleNames and compatibilityRuleNames list each group’s rules. Use mode js for emitted JavaScript imports. Use mode ts for TypeScript source execution. The rules do not infer missing extensions. Do not combine force-ts-extension with require-import-extension and consistent-import-extension.

Run and review

Run the preset configuration:

npx oxlint --config .oxlintrc.mjs src
npx oxlint --config .oxlintrc.mjs --fix src

Replace src with your source directory if needed. For individual rules, use --config .oxlintrc.json instead. Review diagnostics and fixes before committing. Only rules with automatic fixes change code. Preset rules apply to tests and application sources, without test-only exemptions. For a necessary boundary exception, use oxlint-disable-next-line with -- and a specific reason. See the TypeScript preset, Effect preset and Oxlint configuration reference.