{"id":48911750,"url":"https://github.com/cevr/effect-oxlint","last_synced_at":"2026-04-17T00:02:10.488Z","repository":{"id":351662967,"uuid":"1211958077","full_name":"cevr/effect-oxlint","owner":"cevr","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-16T00:30:56.000Z","size":759,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-16T01:23:39.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cevr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-15T23:29:39.000Z","updated_at":"2026-04-16T00:49:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cevr/effect-oxlint","commit_stats":null,"previous_names":["cevr/effect-oxlint"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cevr/effect-oxlint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cevr%2Feffect-oxlint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cevr%2Feffect-oxlint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cevr%2Feffect-oxlint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cevr%2Feffect-oxlint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cevr","download_url":"https://codeload.github.com/cevr/effect-oxlint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cevr%2Feffect-oxlint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31909235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-04-17T00:01:07.687Z","updated_at":"2026-04-17T00:02:10.466Z","avatar_url":"https://github.com/cevr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# effect-oxlint\n\noxlint plugin + type-aware linter for [Effect](https://effect.website) codebases.\n\n## Packages\n\n| Package | What | Install |\n|---------|------|---------|\n| [`oxlint-plugin-effect`](./packages/oxlint-plugin-effect) | 59 AST lint rules | `bun add -D oxlint-plugin-effect` |\n| [`tsgolint-effect`](./packages/tsgolint-effect) | 24 type-aware lint rules | `bun add -D tsgolint-effect` |\n\n## Quick Start\n\n```bash\nbun add -D oxlint oxlint-plugin-effect\n```\n\n`.oxlintrc.json`:\n```json\n{\n  \"jsPlugins\": [\"oxlint-plugin-effect/plugin\"],\n  \"rules\": {\n    \"effect/noEffectDo\": \"error\",\n    \"effect/noNestedPipe\": \"error\",\n    \"effect/noThrowStatement\": \"error\",\n    \"effect/noGlobals\": \"warn\"\n  },\n  \"overrides\": [\n    {\n      \"files\": [\"**/*.test.ts\", \"**/*.test.tsx\", \"**/tests/**\", \"**/test/**\"],\n      \"rules\": {\n        \"effect/noInlineProvide\": \"off\"\n      }\n    }\n  ]\n}\n```\n\nThe `overrides` entry turns off `noInlineProvide` in test files. The rule's intent is \"provide layers at the boundary, not scattered through production code\" — in tests, `it.effect(() =\u003e Effect.gen(function*() { ... }).pipe(Effect.provide(TestLayer)))` *is* the boundary.\n\nOther rules (`noThrowStatement`, `noTryCatch`, `noNewError`, etc.) stay enabled in tests — test code should still prefer Effect primitives.\n\n```bash\noxlint\n```\n\n### Type-Aware Rules\n\nFor rules that need the TypeScript type checker (floating effects, missing `yield*`, etc.):\n\n```bash\nbun add -D tsgolint-effect\n```\n\n```json\n{\n  \"jsPlugins\": [\"oxlint-plugin-effect/plugin\"],\n  \"options\": { \"typeAware\": true },\n  \"rules\": {\n    \"effect/floating-effect\": \"error\",\n    \"effect/missing-yield-star\": \"error\",\n    \"effect/return-effect-in-gen\": \"error\",\n    \"effect/catch-unfailable\": \"warn\"\n  }\n}\n```\n\n```bash\nOXLINT_TSGOLINT_PATH=./node_modules/.bin/tsgolint-effect oxlint\n```\n\n## Rules\n\n### JS Plugin (AST-only, fast)\n\n59 rules across categories: API bans, global bans, import bans, statement bans, AST patterns, and Effect-context rules. Five presets available: `core`, `full`, `effect-native`, `functional`, `strict`.\n\n### Go Binary (type-aware)\n\n| Rule | Description |\n|------|-------------|\n| `effect/floating-effect` | Effect created but never yielded or run |\n| `effect/missing-yield-star` | `yield` without `*` on Effect in Effect.gen |\n| `effect/return-effect-in-gen` | `return Effect` instead of `return yield* Effect` |\n| `effect/catch-unfailable` | `.catch*` on an infallible Effect (`never` error) |\n| `effect/schema-sync-in-effect` | `Schema.decodeSync` inside Effect.gen |\n| `effect/lazy-promise-in-sync` | `Effect.sync(() =\u003e promise)` |\n| `effect/effect-in-failure` | Effect type in the error channel |\n| `effect/effect-in-void-success` | Nested `Effect\u003cEffect\u003c...\u003e\u003e` |\n\n## Development\n\n```bash\nbun install\nbun run gate        # runs JS + Go gates in parallel\nbun run gate:js     # typecheck + test JS plugin\nbun run gate:go     # build + test Go binary\nbun run codegen     # regenerate rules index\nbun run add-rule \u003cname\u003e [--context]  # scaffold new JS rule\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcevr%2Feffect-oxlint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcevr%2Feffect-oxlint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcevr%2Feffect-oxlint/lists"}