An ESLint plugin that integrates oxfmt (a blazing-fast Rust-based formatter from the OXC project) as an ESLint rule. Current stable version is 0.4.0, released monthly. Requires ESLint v9+ with flat config (no legacy config support) and Node.js ^20.19.0 || >=22.12.0. Key differentiators: leverages oxfmt's performance (written in Rust), supports a wide range of formatting options including JSDoc, sort imports, Tailwind CSS class sorting, and EditorConfig integration. Unlike prettier-based ESLint plugins, it uses the same formatter as oxlint for unified formatting.
npm install eslint-plugin-oxfmtVerified import paths — ran on the pinned version, not inferred.
Installs dependencies and sets up ESLint flat config to format files using oxfmt via the plugin's recommended config.
Upgrade to eslint-plugin-oxfmt@0.1.0+ and ensure oxfmt >=0.35.0 and ESLint >=9.0.0
Migrate to ESLint flat config (eslint.config.mjs).
Always set `files: ['**/*.js', ...]` when spreading `pluginOxfmt.configs.recommended`.
Check oxfmt documentation for supported properties.
Refer to oxfmt changelog for accurate option names.
Install via `npm install eslint-plugin-oxfmt`. Use `import` syntax, not `require`.
Use `'oxfmt/oxfmt': 'error'` or `'oxfmt/oxfmt': ['error', { /* options */ }]`.Add `files: ['**/*.{js,ts,jsx,tsx}']` to the config object.