Skip to Content
Octopus Energy Packages
Oxlint

API Reference

Exported oxlint presets and rule groups

Presets

Each oxlint preset is an OxlintConfig default export that can be used in the extends array of defineConfig.

ExportIncludes
@octopus-energy/oxc/oxlint/coreCore, Import
@octopus-energy/oxc/oxlint/typescriptCore, Import, TypeScript
@octopus-energy/oxc/oxlint/reactCore, Import, TypeScript, React, JSX a11y
@octopus-energy/oxc/oxlint/nextjsCore, Import, TypeScript, React, JSX a11y, Next.js
oxlint.config.ts
import next from "@octopus-energy/oxc/oxlint/nextjs";
import { defineConfig } from "oxlint";

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

Rule groups

The presets are composed from these rule groups. Open a group to inspect the exact rules and settings it enables.


JSON configs

JSON variants are available for projects using .oxlintrc.json. Because oxlint currently does not resolve package exports in JSON extends, reference the files through node_modules.

.oxlintrc.json
{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "extends": ["node_modules/@octopus-energy/oxc/oxlint/nextjs.json"]
}
JavaScript exportJSON file
@octopus-energy/oxc/oxlint/corenode_modules/@octopus-energy/oxc/oxlint/core.json
@octopus-energy/oxc/oxlint/typescriptnode_modules/@octopus-energy/oxc/oxlint/typescript.json
@octopus-energy/oxc/oxlint/reactnode_modules/@octopus-energy/oxc/oxlint/react.json
@octopus-energy/oxc/oxlint/nextjsnode_modules/@octopus-energy/oxc/oxlint/nextjs.json

On this page