[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-117262":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":10,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":28,"discoverSource":29},117262,"oxlint-config","cloudflare\u002Foxlint-config","cloudflare","Shared Oxlint rules for Cloudflare JavaScript and TypeScript projects","",null,"JavaScript",148,5,2,3,0,19,34,72,82.73,"Apache License 2.0",false,"main",[],"2026-11-23 09:58:45","2026-11-23 20:41:44","# @cloudflare\u002Foxlint-config\n\nShared Oxlint config for JavaScript and TypeScript projects. It builds on\n[@nkzw\u002Foxlint-config](https:\u002F\u002Fgithub.com\u002Fnkzw-tech\u002Foxlint-config) and adds\nrules for type safety, promise handling, and type-only imports.\n\n## Usage\n\nUse Node.js 22.18 or later on the 22.x line, or Node.js 24 or later.\nNode.js 22.18 is the first 22.x release that can load `oxlint.config.ts`\nwithout extra flags.\n\n### Standalone Oxlint\n\nInstall the preset with Oxlint and `tsrs`, its type-aware backend.\n\n```sh\nnpm install -D @cloudflare\u002Foxlint-config oxlint@^1.94.0 tsrs@^7.1.0-beta.tsrs2\n```\n\nCreate `oxlint.config.ts` in the project root:\n\n```ts\nimport cloudflare from '@cloudflare\u002Foxlint-config';\nimport { defineConfig } from 'oxlint';\n\nexport default defineConfig({\n  extends: [cloudflare],\n  env: cloudflare.env,\n  ignorePatterns: cloudflare.ignorePatterns,\n});\n```\n\nRun `oxlint .` locally and in CI.\n\n### Vite+\n\nIn a project that uses `vite-plus@1.7.0` or later, install the preset.\nVite+ supplies Oxlint and its type-aware backend.\n\n```sh\nvp add -D @cloudflare\u002Foxlint-config\n```\n\nImport the Vite+ entry in the project's root `vite.config.ts`.\n\n```ts\nimport cloudflare from '@cloudflare\u002Foxlint-config\u002Fvite-plus';\nimport { defineConfig } from 'vite-plus';\n\nexport default defineConfig({\n  lint: {\n    extends: [cloudflare],\n    env: cloudflare.env,\n    ignorePatterns: cloudflare.ignorePatterns,\n  },\n});\n```\n\nRun `vp lint` locally and in CI.\n\n### Project settings\n\nBoth examples set `env` and `ignorePatterns` explicitly because Oxlint 1.94\nreads them from the root lint config. To customize the preset, add `rules`\nand `overrides` alongside `extends`. This standalone example allows non-null\nassertions throughout the project and console calls in `scripts\u002F`.\n\n```ts\nexport default defineConfig({\n  extends: [cloudflare],\n  env: cloudflare.env,\n  ignorePatterns: cloudflare.ignorePatterns,\n  rules: {\n    'typescript\u002Fno-non-null-assertion': 'off',\n  },\n  overrides: [\n    {\n      files: ['scripts\u002F**'],\n      rules: { 'no-console': 'off' },\n    },\n  ],\n});\n```\n\nOxlint doesn't report TypeScript compiler errors by default, so keep your\ntype-check command in CI or set `options.typeCheck: true`.\n\n## Migrating an existing project\n\n1. Adopt the preset in one passing commit, with newly failing rules\n   temporarily turned off.\n2. For each rule, use one commit to enable it with fixes or explain why it\n   stays off. Rules that don't fit the project can stay off.\n3. Open one pull or merge request for the migration and squash it when\n   merging.\n\nThe [migration skill](skills\u002Fmigrate-oxlint-config\u002FSKILL.md) gives coding\nagents the full workflow. The npm package includes it at the same path.\n\n## Rule behavior\n\n- Enabled rules are errors. Oxlint's category defaults are off, so Oxlint\n  upgrades can't enable rules through category membership.\n- `eqeqeq` applies to `null` checks. Use `value === null || value === undefined`\n  to check for both.\n- `typescript\u002Fno-misused-promises` reports promise-returning callbacks where\n  `void` is expected. React projects can set\n  `checksVoidReturn: { attributes: false }` in a JSX file override and catch\n  rejections in the handler.\n- Returned promises must be awaited where it affects error handling, such as\n  inside `try`. Elsewhere, `return await` is optional.\n- Empty interfaces are errors, including interfaces that only extend another\n  type.\n- `@ts-ignore` is banned. `@ts-expect-error` needs a description.\n- `eval`, including indirect calls, is an error. So is a module importing\n  itself.\n- TypeScript uses `typescript\u002Fonly-throw-error` instead of `no-throw-literal`.\n  JavaScript keeps `no-throw-literal` and turns off the five\n  `typescript\u002Fno-unsafe-*` rules.\n- TypeScript test files (`*.{test,spec,integration,e2e}.*` and `__tests__\u002F`)\n  turn off `only-throw-error`, `unbound-method`, `no-explicit-any`,\n  `no-non-null-assertion`, `no-unsafe-argument`, `no-unsafe-assignment`, and\n  `no-unsafe-member-access`.\n- `no-console` applies everywhere, including the entry points that nkzw\n  exempts. Add a file override where logging is expected.\n\n## Development\n\nInstall [Vite+](https:\u002F\u002Fviteplus.dev\u002Fguide\u002F) and use Node.js 24 LTS (24.11+),\nas CI does. Run `vp install`, `vp check`, and `vp test`. Use `vp pm pack` to\nbuild a tarball for testing in a consumer project.\n\nOpen a pull request for changes. If you change a rule, include code that it\nnow reports or allows. Maintainers squash approved pull requests after CI\npasses. Report vulnerabilities through the [security policy](SECURITY.md).\n\n## Releases\n\n1. Merge the version bump to `main`.\n2. Create and push a signed `v\u003Cversion>` tag on that commit.\n3. Run **Publish to npm** from `main` while `main` still points at the tagged\n   commit.\n\nThe workflow checks that GitHub verified the tag and that it points at the\ncommit being published. It then runs `vp check` and `vp test`, and publishes\nwith provenance through npm Trusted Publishing.\n","2026-11-24 04:55:13","CREATED_QUERY"]