@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 03:37 UTC

next
md 19 lines 1.06 KB
Rendered Raw
1 # Effect lint rules
2
3 Adapted from [K-Mistele/anti-slop](https://github.com/K-Mistele/anti-slop/tree/b7c1619b4d51b4815e89ba3700a975a6ec54b8c3),
4 commit `b7c1619b4d51b4815e89ba3700a975a6ec54b8c3` (MIT, copyright Dillon Mulroy).
5 The license is preserved in [LICENSE](LICENSE).
6
7 Borrowed files: `src/effect/rules/require-cause-when-narrowing.ts`,
8 `src/effect/rules/no-ordie-in-service-construction.ts`, their fixtures, and the
9 parts of `src/effect/shared/effect-modules.ts` those rules use.
10
11 Local changes adapt the diagnostics to Composio's tagged-error conventions,
12 remove unused helpers, and register only these two rules as `composio-effect`.
13 Import recognition also resolves lexical bindings, so a local parameter that
14 shadows an Effect import is not treated as the Effect module.
15 Local traversal handles conditional error replacements, property values yielded
16 during construction, and transparent wrappers around service options while
17 preserving deferred service operations.
18 These are syntax and same-file scope checks, not type checking or a proof that
19 every failure retains its cause.