Skip to content

@wtf/project-oxlint

Documentation / @wtf/project-oxlint

A shared oxlint config: the typescript, unicorn and import plugins, correctness rules as errors, suspicious and perf rules as warnings, and import/no-cycle, eqeqeq and typescript/no-explicit-any as errors. It leaves the build and a generated reference in packages/docs/api alone. oxlint is a peer dependency.

SubpathWhat you get
./configThe config, as the default export
oxlint.config.ts
import preset from '@wtf/project-oxlint/config'
import { defineConfig } from 'oxlint'
export default defineConfig({ extends: [preset] })

Run it as oxlint --deny-warnings, so a warning fails the lint just as an error does. See the presets guide.

oxlint’s shared config, which a repo’s oxlint.config.ts extends: the typescript, unicorn and import plugins, correctness as errors, suspicious and perf as warnings, and import/no-cycle, eqeqeq and typescript/no-explicit-any as errors. Run it with --deny-warnings.

Variables