Overview
Shared oxlint and oxfmt configurations
The Oxc toolchain brings fast, Rust-based linting and
formatting to JavaScript projects. oxlint handles code rules, while oxfmt
handles formatting and import sorting, giving teams a faster alternative to
traditional linting and formatting tools.
@octopus-energy/oxc provides shared configuration for
oxlint and
oxfmt.
Use this package to set up linting, formatting, or both.
Oxlint
Configure lint rules for JavaScript, TypeScript, React, and Next.js projects.
Oxfmt
Configure formatting defaults, including import sorting.
Requirements
| Requirement | Version |
|---|---|
| Node.js | ≥24.0.0 |
| Peer dependency | Version | When |
|---|---|---|
oxfmt | >=0.55.0 | Using the oxfmt config |
oxlint | ^1.45.0 | Using an oxlint preset |
oxlint-tsgolint | >=0.23.0 <7.1.0 | Using type-aware oxlint rules |