@dalhof/oxc-config
Shared Oxlint and Oxfmt presets for JavaScript and TypeScript projects.
Install
pnpm add -D @dalhof/oxc-config oxlint oxfmt
Oxlint
Create oxlint.config.ts in your project root:
import { defineConfig } from '@dalhof/oxc-config/oxlint'
export default defineConfig()
Oxfmt
Create oxfmt.config.ts in your project root:
import { defineConfig } from '@dalhof/oxc-config/oxfmt'
export default defineConfig()
How overrides work
Both defineConfig helpers append your ignorePatterns after the preset globs.
Omit ignorePatterns or pass [] to keep the preset list unchanged.
All other options use shallow overrides. For example, passing categories to
the Oxlint helper replaces the entire preset categories object.
To replace the ignore list instead of appending to it, spread the default preset
into a new config object and set ignorePatterns after the spread.