{"id":51867294,"url":"https://github.com/apify/apify-oxlint-config","last_synced_at":"2026-07-24T18:00:59.617Z","repository":{"id":353076051,"uuid":"1217869889","full_name":"apify/apify-oxlint-config","owner":"apify","description":"Apify oxlint preset to be shared between projects","archived":false,"fork":false,"pushed_at":"2026-07-01T20:25:15.000Z","size":5802,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-07-01T21:18:56.340Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-22T09:50:51.000Z","updated_at":"2026-07-01T19:25:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/apify/apify-oxlint-config","commit_stats":null,"previous_names":["apify/apify-oxlint-config"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/apify/apify-oxlint-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Fapify-oxlint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Fapify-oxlint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Fapify-oxlint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Fapify-oxlint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apify","download_url":"https://codeload.github.com/apify/apify-oxlint-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Fapify-oxlint-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35850518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-24T02:00:07.870Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-24T18:00:58.837Z","updated_at":"2026-07-24T18:00:59.603Z","avatar_url":"https://github.com/apify.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apify-oxlint-config\n\nShared [oxlint](https://oxc.rs) configuration used across [Apify](https://apify.com/) projects. Mirrors the rule set of [`@apify/eslint-config`](https://github.com/apify/apify-eslint-config) for projects that have migrated from ESLint to oxlint.\n\n## How to add to your project\n\nInstall the packages as dev dependencies:\n\n```bash\nnpm install --save-dev @apify/oxlint-config oxlint\n```\n\nIf you want type-aware rules (`typescript/no-floating-promises`, `typescript/await-thenable`, ...) also install:\n\n```bash\nnpm install --save-dev oxlint-tsgolint\n```\n\nAdd an `oxlint.config.ts` (or `.js`/`.mjs`) at your project root and call the package's `defineConfig` with any project-local additions:\n\n```ts\nimport { defineConfig } from '@apify/oxlint-config';\n\nexport default defineConfig({\n    // local plugin additions, e.g. for React projects:\n    plugins: ['react'],\n    overrides: [\n        // local overrides\n    ],\n});\n```\n\n`defineConfig` merges your config on top of the Apify preset (arrays concatenated, objects shallow-merged with consumer winning) and returns a typed `OxlintConfig` that's safe to default-export under `composite` / `--isolatedDeclarations` TypeScript projects.\n\nIf you'd rather spread the preset manually, the raw config is still the package's default export:\n\n```ts\nimport { defineConfig } from 'oxlint';\nimport sharedConfig from '@apify/oxlint-config';\n\nexport default defineConfig({\n    ...sharedConfig,\n    plugins: [...sharedConfig.plugins, 'react'],\n    overrides: [...sharedConfig.overrides, /* local */],\n});\n```\n\nRun lint:\n\n```bash\nnpx oxlint --type-aware\n```\n\n## What's included\n\nThe shared config provides:\n\n- **Plugins** — `typescript`, `import`, `unicorn`, `jest`, `vitest`, `promise` (Rust-side, no install required). Both `jest` and `vitest` are enabled because vitest's API is jest-compatible — most of the test best-practices we care about live in the `jest/*` rules and apply equally to vitest tests. The `vitest` plugin adds a few framework-specific rules (e.g. `vitest/hoisted-apis-on-top`, `vitest/no-conditional-tests`) on top. React plugins are intentionally **not** included; consumers add `'react'` to `plugins` if their project uses React. (Note: oxlint's `react` plugin already covers React Hooks rules; there's no separate `react-hooks` plugin.)\n- **Rules** — the Apify house rules: `typescript/consistent-type-imports`, `typescript/no-floating-promises`, `unicorn/prefer-node-protocol`, `import/no-default-export`, `unicorn/no-await-in-promise-methods`, plus the curated `off` list of TypeScript strict rules we don't want.\n- **Overrides** — relaxed rules for test files, vite/jest/vitest config files, story files, and integration test directories.\n\nTest framework helpers (`describe`, `it`, `expect`, `vi`, ...) are intentionally **not** declared as globals — test files should import them directly from `vitest`/`@jest/globals` so editors, type-checkers and linters agree on what's in scope.\n\n## What's NOT included\n\nThe shared config does **not** declare `jsPlugins` (the JS-side plugins like `eslint-plugin-storybook`, `eslint-plugin-cypress`, `eslint-plugin-playwright`, `@tanstack/eslint-plugin-query`). Those carry their own peer dependencies and are project-specific. Add them in your own config:\n\n```ts\nexport default defineConfig({\n    jsPlugins: [\n        { name: 'storybook', specifier: 'eslint-plugin-storybook' },\n        { name: 'playwright', specifier: 'eslint-plugin-playwright' },\n    ],\n});\n```\n\n## Overriding rules\n\nAdd a `rules` block — your entries win over the preset:\n\n```ts\nexport default defineConfig({\n    rules: {\n        'no-console': 'off',\n    },\n});\n```\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapify%2Fapify-oxlint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapify%2Fapify-oxlint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapify%2Fapify-oxlint-config/lists"}