oxlint-config

cloudflare

Cloudflare's shared configuration for Oxlint, the fast JavaScript and TypeScript linter, adding rules for type safety, promise handling and type-only imports on top of a popular community base config.

JavaScriptCreated

What is cloudflare/oxlint-config?

This is a shared Oxlint configuration for JavaScript and TypeScript projects, published by Cloudflare. The README says it builds on the nkzw Oxlint configuration and adds rules for type safety, promise handling and type-only imports. The rules are meant to catch common mistakes that a plain linter misses in typed code.

The README sets out the requirements. It needs Node.js 22.18 or later on the 22.x line, or Node.js 24 or later, because those versions can load an oxlint.config.ts file without extra flags. It also explains how to install the preset with Oxlint and tsrs, the type-aware backend that the rules depend on.

It suits teams that want a ready-made lint setup for TypeScript and JavaScript projects, and maintainers who want to see how a large company shares its linting rules across repositories.