{"_id":"@cloudflare/oxlint-config","_rev":"3-190892fa807593322fa7f51a4b8f3a00","name":"@cloudflare/oxlint-config","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.0-stage":{"name":"@cloudflare/oxlint-config","version":"0.0.0-stage","_id":"@cloudflare/oxlint-config@0.0.0-stage","stub":true,"maintainers":[{"name":"wrangler-publisher","email":"workers-devprod@cloudflare.com"}],"dist":{"shasum":"9bbccd3282967961c9fe47084431bb5dd08021ad","tarball":"https://registry.npmjs.org/@cloudflare/oxlint-config/-/oxlint-config-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-v2VBymS2s/XjbgCaMbW0Wcz3g7BHyjlOz/UGYp2Vi1gEVxIaMasDoIRSKE6Voxi79Vo6fzsmrYMEkEB0BR5CwQ==","signatures":[{"sig":"MEUCICxAJ6Nrn5BBNz/oOLC5E8jQr/GXf3V2yNFPooBHljP6AiEAwWLPSm9FPTu6IrU8G1TL9OyRlJ2+1lOpdYMk5Vma9Z8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":347},"_npmUser":{"name":"wrangler-publisher","email":"workers-devprod@cloudflare.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.0.0":{"name":"@cloudflare/oxlint-config","version":"0.0.0","license":"Apache-2.0","_id":"@cloudflare/oxlint-config@0.0.0","maintainers":[{"name":"cf-ci-write","email":"npm-readonly@cloudflare.com"},{"name":"dash_service_account","email":"service-account@cloudflare-ui.com"},{"name":"wrangler-publisher","email":"workers-devprod@cloudflare.com"},{"name":"cf-npm-publish","email":"ui-platform-production@cloudflare.com"}],"dist":{"shasum":"edf5f4fefafe73f778ce4f50d19c44d9daed7c0b","tarball":"https://registry.npmjs.org/@cloudflare/oxlint-config/-/oxlint-config-0.0.0.tgz","fileCount":1,"integrity":"sha512-1Us0NoieHBTxXWGGnbpLax0zQ2d0WAPTYgC3am1K27+AuhX7w2tUbssRbXgEDglLNDvQu/g6iH7u88shvMqLOQ==","signatures":[{"sig":"MEUCIQDBsL9YIyFLIFvlSeqEy1bb/7PH2wfebbuMWIgrPc3NDwIgSjwls5yY87ejLG9J568J1h18yOsZ8nb7tLYrzMuaAAc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCS0PdpAdhutcJ26iihVmHBDJnnwO/bLZA1xfrGtzLfmwIgQbfALfEK07gg502IWycXVy8DoUC1qO0GLAUuMCW3ydc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":459},"type":"module","engines":{"node":"^22.18.0 || >=24.0.0"},"_npmUser":{"name":"wrangler-publisher","email":"workers-devprod@cloudflare.com"},"repository":{"url":"git+https://github.com/cloudflare/oxlint-config.git","type":"git"},"description":"Shared Oxlint rules for Cloudflare JavaScript and TypeScript projects.","directories":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/oxlint-config_0.0.0_1795159759064_0.9278550546919432","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"_id":"@cloudflare/oxlint-config@0.1.0","bugs":{"url":"https://github.com/cloudflare/oxlint-config/issues"},"dist":{"shasum":"7ce3a8e250afc8852d98acfa11f423f785f1c1d7","tarball":"https://registry.npmjs.org/@cloudflare/oxlint-config/-/oxlint-config-0.1.0.tgz","fileCount":6,"integrity":"sha512-ZIajMHdEImUjtKZEHbpddrXsnNBpQT7Gy1MZg2lOL3ketdmWYpNWtZghkkKAlhgi2R8z/HATZyas4OOpMy6TIQ==","signatures":[{"sig":"MEYCIQChpL5SIj97FBiMyc+rYXQ5tIPJ3ULl1VJpXqU8moAH6gIhAKM6c7Z7Lvnz0mxgJ4gFtBgX2QGNHUQERgmvzCHgqLnL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDWvXHx9PU9n6MmEhJI6y2bN+LsMN8pICUxu48EhygsFAIhAINWhX5WKWB8KT9uif6ppcz+68mTQ9tNW53Avv/hOoTJ"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cloudflare%2foxlint-config@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22172},"name":"@cloudflare/oxlint-config","type":"module","types":"./index.d.ts","engines":{"node":"^22.18.0 || >=24.0.0"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"}},"gitHead":"f3681c086a8cb28ec4b9b9d06c2f80fde518291b","license":"Apache-2.0","scripts":{"test":"vp test","prepare":"vp config --no-agent"},"version":"0.1.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c2a5d09e-ee12-45c3-bc0d-853b424d8b24"}},"homepage":"https://github.com/cloudflare/oxlint-config#readme","repository":{"url":"git+https://github.com/cloudflare/oxlint-config.git","type":"git"},"_npmVersion":"11.19.1","description":"Shared Oxlint rules for Cloudflare JavaScript and TypeScript projects.","directories":{},"maintainers":[{"name":"cf-ci-write","email":"npm-readonly@cloudflare.com"},{"name":"dash_service_account","email":"service-account@cloudflare-ui.com"},{"name":"wrangler-publisher","email":"workers-devprod@cloudflare.com"},{"name":"cf-npm-publish","email":"ui-platform-production@cloudflare.com"}],"_nodeVersion":"24.22.3","dependencies":{"@nkzw/oxlint-config":"3.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"pnpm@12.21.0","devDependencies":{"tsrs":"^0.25.0-ts7.1.0-beta","oxlint":"^1.94.0","vite-plus":"^1.7.0"},"peerDependencies":{"tsrs":">=0.25.0-ts7.1.0-beta","oxlint":"^1.94.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/oxlint-config_0.1.0_1795162560583_0.3788685022026522"}}},"time":{"created":"2026-11-20T07:26:41.812Z","modified":"2026-11-20T08:16:01.212Z","0.0.0-stage":"2026-11-20T07:26:41.812Z","0.0.0":"2026-11-20T07:29:19.165Z","0.1.0":"2026-11-20T08:16:00.705Z"},"license":"Apache-2.0","repository":{"url":"git+https://github.com/cloudflare/oxlint-config.git","type":"git"},"description":"Shared Oxlint rules for Cloudflare JavaScript and TypeScript projects.","maintainers":[{"name":"cf-ci-write","email":"npm-readonly@cloudflare.com"},{"name":"dash_service_account","email":"service-account@cloudflare-ui.com"},{"name":"wrangler-publisher","email":"workers-devprod@cloudflare.com"},{"name":"cf-npm-publish","email":"ui-platform-production@cloudflare.com"}],"readme":"# @cloudflare/oxlint-config\n\nShared Oxlint rules for JavaScript and TypeScript projects. The preset uses\n[@nkzw/oxlint-config](https://github.com/nkzw-tech/oxlint-config) for general\ncorrectness and code quality, with Cloudflare rules for type safety, promises,\nand type-only imports.\n\n## Usage\n\nUse Node.js 22.18+ on the 22.x line or Node.js 24+. Once the package is available\non npm, install it with Oxlint and its type-aware backend.\n\n```sh\nnpm install -D @cloudflare/oxlint-config oxlint@^1.94.0 tsrs@0.25.0-ts7.1.0-beta\n```\n\nCreate `oxlint.config.ts` at the project root.\n\n```ts\nimport cloudflare from '@cloudflare/oxlint-config';\nimport { defineConfig } from 'oxlint';\n\nexport default defineConfig({ ...cloudflare });\n```\n\nSpreading the preset into the root config preserves its environments in\nOxlint 1.94. Place project-specific settings after the spread. To add rules\nor file overrides, spread the corresponding preset field as well.\n\nUse `oxlint .` for local linting and CI. The preset runs type-aware rules.\nKeep your project's type-check command for compiler diagnostics. If your\nprevious lint configuration ran the compiler, keep that coverage in CI with\na separate type-check command or set `options.typeCheck` to `true`.\n\n## Migrating an existing project\n\nAdopt the preset in a passing commit with newly failing rules temporarily\ndisabled. When migrating an existing project, including from an internal\npreset, decide case by case which new rules fit. It's acceptable to keep a\nrule disabled in the project config when it doesn't fit.\n\nUse one commit per rule to enable it with fixes or document why it should\nstay off. Open one pull or merge request for the whole migration and squash\nit after review.\n\nGive your coding agent the [migration skill](skills/migrate-oxlint-config/SKILL.md)\nfor the full workflow. It also ships at `skills/migrate-oxlint-config/SKILL.md`\ninside the npm package.\n\n## Rule behavior\n\n- Enabled rules are errors. Oxlint's whole-category defaults are disabled so\n  upgrades to Oxlint cannot turn on new rules through category membership.\n- Use strict equality, including for checks against `null`. To check for\n  both nullish values, use `value === null || value === undefined`.\n- Promise-returning callbacks used where `void` is expected are errors. React\n  projects can set `checksVoidReturn: { attributes: false }` in a JSX file\n  override for `typescript/no-misused-promises` and handle rejected promises\n  in the handler.\n- The preset keeps nkzw's choices for `return await`, empty interfaces, and\n  TypeScript suppression comments.\n- Direct `eval` and imports from the same module are errors.\n- TypeScript source uses the type-aware check for throwing non-Error values.\n  TypeScript tests relax that check, `typescript/unbound-method`, and selected\n  type-safety checks. JavaScript uses the syntax-level throw check and skips the\n  five unsafe-`any` rules.\n- The preset applies `no-console` consistently across application paths.\n  Projects can add a file override for entry points where logging is expected.\n\n## Development\n\nInstall [Vite+](https://viteplus.dev/guide/) and use Node.js 24 LTS (24.11 or\nlater) to match CI. Run `vp install`, `vp check`, and `vp test`. Use\n`vp pm pack` to build a tarball for testing in a consumer project.\n\nSend changes in a pull request and include an example of the affected lint\nbehavior when changing a rule. Maintainers squash approved pull requests after\nCI passes. See the [security policy](SECURITY.md) for vulnerability reports.\n\n## Releases\n\nMerge the version bump to `main`, then create and push a signed `v<version>`\ntag for that commit. Run **Publish to npm** from `main` at the tagged commit.\nThe workflow verifies the tag, runs the tests, and publishes the package\nwith provenance using npm Trusted Publishing.\n","readmeFilename":"README.md","homepage":"https://github.com/cloudflare/oxlint-config#readme","bugs":{"url":"https://github.com/cloudflare/oxlint-config/issues"}}