# @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.

**Type:** library
**Added:** 2026-11-29
**Source date:** 2026-11-20
**Author:** [Cloudflare](https://www.cloudflare.com)
**Link:** https://github.com/cloudflare/oxlint-config
**Topics:** Dev Tools, Open Source
**Tags:** typescript, agents, performance

---

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](https://github.com/oxc-project/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.

---

## Links

- Directory entry: https://andrey-markin.com/directory/cloudflare-oxlint-config
- All directory entries: https://andrey-markin.com/directory
- Contact: https://andrey-markin.com/#contact
