librarydev toolsopen source

@cloudflare/oxlint-config

Cloudflare's shared Oxlint preset for JavaScript and TypeScript. Built on the nkzw config, it adds strict type-aware rules for type safety, promise handling and type-only imports, running on tsrs.

Added November 29, 2026Published November 20, 2026Cloudflare

Cloudflare says it was inspired by Dillon Mulroy's anti-slop rules. Install it with npm install -D @cloudflare/oxlint-config oxlint tsrs, then extend it from oxlint.config.ts and run oxlint .. Projects on Vite+ import @cloudflare/oxlint-config/vite-plus instead and run vp lint. Type-aware checks use tsrs as the backend.

Every enabled rule is an error, and Oxlint's category defaults stay off, so an Oxlint upgrade can't turn on new rules silently. It bans @ts-ignore, needs a description on @ts-expect-error, reports promise-returning callbacks where void is expected, and makes empty interfaces, eval and console calls errors. Test files relax a few unsafe-type rules.

For existing codebases the README describes a migration: adopt the preset with failing rules off, then enable one rule per commit. The package ships a migrate-oxlint-config agent skill with that workflow.

#typescript#agents#performance

related