@opsydyn/oxlint-effect 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -3
- package/dist/index.d.mts +97 -8
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -28,8 +28,8 @@ type.
|
|
|
28
28
|
### Configure One Rule Group
|
|
29
29
|
|
|
30
30
|
Every documented rule group is exported as a config-shaped preset with the same
|
|
31
|
-
shape as `recommended`.
|
|
32
|
-
|
|
31
|
+
shape as `recommended`. The `ddd` preset combines Domain Modeling and Error
|
|
32
|
+
Modeling rules:
|
|
33
33
|
|
|
34
34
|
```ts
|
|
35
35
|
import { defineConfig } from "oxlint";
|
|
@@ -55,7 +55,8 @@ Named group presets:
|
|
|
55
55
|
| `optionMatchAndDataNormalization` | Option, Match, and Data Normalization |
|
|
56
56
|
| `atomStateAndPlatformBoundaries` | Atom, State, and Platform Boundaries |
|
|
57
57
|
| `domainModeling` | Domain Modeling |
|
|
58
|
-
| `
|
|
58
|
+
| `errorModeling` | Error Modeling |
|
|
59
|
+
| `ddd` | Domain Modeling and Error Modeling |
|
|
59
60
|
| `effectFlow` | Effect Flow |
|
|
60
61
|
| `pureTransformation` | Pure Transformation |
|
|
61
62
|
| `behaviorDecoration` | Behavior Decoration |
|
|
@@ -72,6 +73,7 @@ import { defineConfig } from "oxlint";
|
|
|
72
73
|
import {
|
|
73
74
|
concurrencySafety,
|
|
74
75
|
domainModelingRules,
|
|
76
|
+
errorModelingRules,
|
|
75
77
|
effectCompositionRules,
|
|
76
78
|
} from "@opsydyn/oxlint-effect";
|
|
77
79
|
|
|
@@ -81,6 +83,7 @@ export default defineConfig({
|
|
|
81
83
|
rules: {
|
|
82
84
|
...concurrencySafety.rules,
|
|
83
85
|
...domainModelingRules,
|
|
86
|
+
...errorModelingRules,
|
|
84
87
|
...effectCompositionRules,
|
|
85
88
|
},
|
|
86
89
|
});
|
|
@@ -374,3 +377,18 @@ support the same `boundaryPaths` option as the other lifecycle rules.
|
|
|
374
377
|
| `linteffect/no-implicit-state-machine-object` | Multiple boolean lifecycle flags on one object. | Models impossible states away with tagged unions. |
|
|
375
378
|
| `linteffect/no-adhoc-domain-error` | `Effect.fail("...")` and `throw new Error("...")` in domain code. | Uses structured tagged errors for recovery and observability. |
|
|
376
379
|
| `linteffect/no-domain-meaning-by-folder-only` | Admin/public/internal meaning encoded only in names around raw IDs. | Represents context in types, commands, policies, or services. |
|
|
380
|
+
|
|
381
|
+
### Error Modeling
|
|
382
|
+
|
|
383
|
+
Public Effect operations should expose one structured, recoverable error
|
|
384
|
+
channel. The DDD preset includes these rules; they remain opt-in to keep
|
|
385
|
+
`recommended` compatible with existing projects.
|
|
386
|
+
|
|
387
|
+
| Rule | Catches | Why |
|
|
388
|
+
| --- | --- | --- |
|
|
389
|
+
| `linteffect/no-error-as-public-effect-error` | Exported functions returning `Effect.Effect<_, Error, _>`. | Generic `Error` hides recovery semantics and domain context. |
|
|
390
|
+
| `linteffect/no-unknown-public-error-channel` | Exported functions returning `Effect.Effect<_, unknown, _>`. | Callers cannot recover by tag or type from an `unknown` channel. |
|
|
391
|
+
| `linteffect/no-mixed-effect-error-shapes` | Public error unions mixing `Error`, `unknown`, string, number, or boolean shapes. | A single tagged error union keeps recovery and observability predictable. |
|
|
392
|
+
| `linteffect/no-effect-fail-error-message` | `Effect.fail(error.message)`, string concatenation, or templates that stringify an error. | Preserves the original error tag, cause, and context instead of collapsing it into a string. |
|
|
393
|
+
| `linteffect/no-catchall-generic-rethrow` | `catchAll` handlers that create `new Error(...)` inside `Effect.fail(...)`. | Keeps recovery typed and prevents generic rethrows from erasing the original failure. |
|
|
394
|
+
| `linteffect/no-log-only-error-handling` | `catchAll` or `tapError` handlers that only call `Effect.log*`. | Logging is observability, not failure ownership; map or re-fail after logging. |
|
package/dist/index.d.mts
CHANGED
|
@@ -12,6 +12,26 @@ declare const branchingAndLocalControlFlowRules: Record<"linteffect/no-if-statem
|
|
|
12
12
|
declare const optionMatchAndDataNormalizationRules: Record<"linteffect/no-option-as" | "linteffect/no-match-void-branch" | "linteffect/no-match-effect-branch" | "linteffect/no-model-overlay-cast" | "linteffect/no-unknown-boolean-coercion-helper" | "linteffect/no-fromnullable-nullish-coalesce" | "linteffect/no-option-boolean-normalization" | "linteffect/no-string-sentinel-return" | "linteffect/no-string-sentinel-const", "error">;
|
|
13
13
|
declare const atomStateAndPlatformBoundariesRules: Record<"linteffect/no-effect-sync-console" | "linteffect/no-wrapgraphql-catchall" | "linteffect/no-atom-registry-effect-sync" | "linteffect/no-family-collection-read" | "linteffect/no-naked-object-state-update", "error">;
|
|
14
14
|
declare const domainModelingRules: Record<"linteffect/no-new-date-in-domain-logic" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only", "error">;
|
|
15
|
+
declare const errorModelingRules: Record<"linteffect/no-effect-fail-error-message" | "linteffect/no-catchall-generic-rethrow" | "linteffect/no-log-only-error-handling" | "linteffect/no-error-as-public-effect-error" | "linteffect/no-unknown-public-error-channel" | "linteffect/no-mixed-effect-error-shapes", "error">;
|
|
16
|
+
declare const dddRules: {
|
|
17
|
+
readonly "linteffect/no-effect-fail-error-message": "error";
|
|
18
|
+
readonly "linteffect/no-catchall-generic-rethrow": "error";
|
|
19
|
+
readonly "linteffect/no-log-only-error-handling": "error";
|
|
20
|
+
readonly "linteffect/no-error-as-public-effect-error": "error";
|
|
21
|
+
readonly "linteffect/no-unknown-public-error-channel": "error";
|
|
22
|
+
readonly "linteffect/no-mixed-effect-error-shapes": "error";
|
|
23
|
+
readonly "linteffect/no-new-date-in-domain-logic": "error";
|
|
24
|
+
readonly "linteffect/no-raw-domain-id-alias": "error";
|
|
25
|
+
readonly "linteffect/no-boolean-domain-flag": "error";
|
|
26
|
+
readonly "linteffect/no-magic-domain-string": "error";
|
|
27
|
+
readonly "linteffect/no-raw-domain-primitive-params": "error";
|
|
28
|
+
readonly "linteffect/no-raw-time-domain-field": "error";
|
|
29
|
+
readonly "linteffect/no-overloaded-options-object": "error";
|
|
30
|
+
readonly "linteffect/no-domain-logic-in-conditional": "error";
|
|
31
|
+
readonly "linteffect/no-implicit-state-machine-object": "error";
|
|
32
|
+
readonly "linteffect/no-adhoc-domain-error": "error";
|
|
33
|
+
readonly "linteffect/no-domain-meaning-by-folder-only": "error";
|
|
34
|
+
};
|
|
15
35
|
declare const effectFlowRules: Record<"linteffect/no-piped-yield-in-gen" | "linteffect/no-gen-for-mapping" | "linteffect/prefer-gen-for-workflow", "error">;
|
|
16
36
|
declare const pureTransformationRules: Record<"linteffect/no-large-anonymous-flow" | "linteffect/no-effect-in-flow" | "linteffect/prefer-named-flow", "error">;
|
|
17
37
|
declare const behaviorDecorationRules: Record<"linteffect/prefer-pipe-for-behavior" | "linteffect/prefer-decorated-effect-before-gen" | "linteffect/no-workflow-in-behavior-pipe", "error">;
|
|
@@ -19,8 +39,8 @@ declare const styleSeparationRules: Record<"linteffect/no-mixed-pillar-function"
|
|
|
19
39
|
declare const serviceAndLayerArchitectureRules: Record<"linteffect/prefer-effect-service" | "linteffect/no-layer-provide-in-service-definition" | "linteffect/require-service-accessors" | "linteffect/require-service-dependencies" | "linteffect/no-namespace-effect-import" | "linteffect/no-manual-service-object-export" | "linteffect/no-layer-merge-in-request-handler" | "linteffect/no-service-method-returning-promise" | "linteffect/prefer-layer-pipe" | "linteffect/no-inline-layer-provide-in-program" | "linteffect/prefer-layer-mergeall-for-infrastructure" | "linteffect/no-service-layer-scatter", "error">;
|
|
20
40
|
declare const platformAndBoundaryHygieneRules: Record<"linteffect/no-json-parse-without-schema" | "linteffect/no-date-now-in-effect" | "linteffect/no-hidden-effect-execution" | "linteffect/no-boundary-try-catch-without-effect-map" | "linteffect/no-node-fs-in-effect-code" | "linteffect/no-node-platform-in-shared-code" | "linteffect/no-process-env-direct-read", "error">;
|
|
21
41
|
declare const testingObservabilityAndQaRules: Record<"linteffect/no-console-in-effect-flow" | "linteffect/no-effect-log-without-structured-context" | "linteffect/require-span-on-public-service-method" | "linteffect/no-runpromise-in-non-async-test-body" | "linteffect/require-effect-flip-for-error-test" | "linteffect/no-test-mock-layer-when-default-available", "error">;
|
|
22
|
-
declare const allRules: Record<"linteffect/no-react-state" | "linteffect/no-if-statement" | "linteffect/no-switch-statement" | "linteffect/no-ternary" | "linteffect/no-return-null" | "linteffect/no-option-as" | "linteffect/no-effect-never" | "linteffect/no-arrow-ladder" | "linteffect/no-branch-in-object" | "linteffect/no-iife-wrapper" | "linteffect/no-return-in-arrow" | "linteffect/no-return-in-callback" | "linteffect/no-effect-fn-generator" | "linteffect/no-effect-sync-console" | "linteffect/no-console-in-effect-flow" | "linteffect/no-effect-log-without-structured-context" | "linteffect/require-span-on-public-service-method" | "linteffect/no-runpromise-in-non-async-test-body" | "linteffect/require-effect-flip-for-error-test" | "linteffect/no-test-mock-layer-when-default-available" | "linteffect/no-nested-effect-gen" | "linteffect/no-yield-without-star-in-effect-gen" | "linteffect/no-piped-yield-in-gen" | "linteffect/no-gen-for-mapping" | "linteffect/prefer-gen-for-workflow" | "linteffect/no-large-anonymous-flow" | "linteffect/no-effect-in-flow" | "linteffect/prefer-named-flow" | "linteffect/prefer-pipe-for-behavior" | "linteffect/prefer-decorated-effect-before-gen" | "linteffect/no-workflow-in-behavior-pipe" | "linteffect/no-mixed-pillar-function" | "linteffect/no-clever-effect-expression" | "linteffect/prefer-extracted-concept" | "linteffect/prefer-effect-service" | "linteffect/no-layer-provide-in-service-definition" | "linteffect/require-service-accessors" | "linteffect/require-service-dependencies" | "linteffect/no-namespace-effect-import" | "linteffect/no-manual-service-object-export" | "linteffect/no-layer-merge-in-request-handler" | "linteffect/no-service-method-returning-promise" | "linteffect/prefer-layer-pipe" | "linteffect/no-inline-layer-provide-in-program" | "linteffect/prefer-layer-mergeall-for-infrastructure" | "linteffect/no-service-layer-scatter" | "linteffect/no-match-void-branch" | "linteffect/no-json-parse-without-schema" | "linteffect/no-date-now-in-effect" | "linteffect/no-new-date-in-domain-logic" | "linteffect/no-match-effect-branch" | "linteffect/warn-effect-sync-wrapper" | "linteffect/no-effect-side-effect-wrapper" | "linteffect/no-effect-all-step-sequencing" | "linteffect/no-async-effect-combinator-callback" | "linteffect/no-throw-in-effect-logic" | "linteffect/no-or-die-outside-boundary" | "linteffect/no-swallowed-catch-all" | "linteffect/no-effect-ignore" | "linteffect/no-try-catch-in-effect-logic" | "linteffect/no-promise-api-in-effect-logic" | "linteffect/no-try-catch" | "linteffect/no-effect-wrapper-alias" | "linteffect/no-manual-effect-channels" | "linteffect/no-wrapgraphql-catchall" | "linteffect/no-render-side-effects" | "linteffect/no-atom-registry-effect-sync" | "linteffect/no-family-collection-read" | "linteffect/no-inline-runtime-provide" | "linteffect/no-naked-object-state-update" | "linteffect/no-effect-succeed-variable" | "linteffect/no-effect-type-alias" | "linteffect/no-public-generic-effect-error" | "linteffect/no-model-overlay-cast" | "linteffect/no-unknown-boolean-coercion-helper" | "linteffect/no-fromnullable-nullish-coalesce" | "linteffect/no-option-boolean-normalization" | "linteffect/no-string-sentinel-return" | "linteffect/no-string-sentinel-const" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-hidden-effect-execution" | "linteffect/no-boundary-try-catch-without-effect-map" | "linteffect/no-node-fs-in-effect-code" | "linteffect/no-node-platform-in-shared-code" | "linteffect/no-process-env-direct-read" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only" | "linteffect/no-effect-as" | "linteffect/no-effect-do" | "linteffect/no-effect-bind" | "linteffect/no-runtime-runfork" | "linteffect/no-run-effect-outside-boundary" | "linteffect/no-effect-async" | "linteffect/prevent-dynamic-imports" | "linteffect/no-nested-effect-call" | "linteffect/no-effect-ladder" | "linteffect/no-flatmap-ladder" | "linteffect/no-pipe-ladder" | "linteffect/no-call-tower" | "linteffect/no-effect-orElse-ladder" | "linteffect/no-unbounded-effect-all" | "linteffect/no-fire-and-forget-fork" | "linteffect/no-fork-in-loop" | "linteffect/no-race-without-cleanup" | "linteffect/no-unobserved-fiber" | "linteffect/no-unbounded-concurrent-retry" | "linteffect/no-blocking-call-in-effect" | "linteffect/no-promise-concurrency-in-effect" | "linteffect/no-shared-mutable-state-across-fibers" | "linteffect/no-timeout-with-noninterruptible-promise" | "linteffect/no-uninterruptible-concurrent-region" | "linteffect/no-unbounded-queue-or-pubsub" | "linteffect/no-global-mutable-concurrency-state" | "linteffect/no-manual-deferred-coordination" | "linteffect/no-acquire-without-scoped-release" | "linteffect/no-manual-resource-close" | "linteffect/no-unbound-scope" | "linteffect/no-resource-succeed-escape" | "linteffect/no-yield-with-held-semaphore-permit" | "linteffect/no-yield-with-held-mutable-ref" | "linteffect/no-unscoped-background-fiber", "error">;
|
|
23
|
-
declare const recommendedRules: Record<"linteffect/no-react-state" | "linteffect/no-if-statement" | "linteffect/no-switch-statement" | "linteffect/no-ternary" | "linteffect/no-return-null" | "linteffect/no-option-as" | "linteffect/no-effect-never" | "linteffect/no-arrow-ladder" | "linteffect/no-branch-in-object" | "linteffect/no-iife-wrapper" | "linteffect/no-return-in-arrow" | "linteffect/no-return-in-callback" | "linteffect/no-effect-fn-generator" | "linteffect/no-effect-sync-console" | "linteffect/no-console-in-effect-flow" | "linteffect/no-effect-log-without-structured-context" | "linteffect/require-span-on-public-service-method" | "linteffect/no-nested-effect-gen" | "linteffect/no-yield-without-star-in-effect-gen" | "linteffect/no-piped-yield-in-gen" | "linteffect/no-gen-for-mapping" | "linteffect/prefer-gen-for-workflow" | "linteffect/no-large-anonymous-flow" | "linteffect/no-effect-in-flow" | "linteffect/prefer-named-flow" | "linteffect/prefer-pipe-for-behavior" | "linteffect/prefer-decorated-effect-before-gen" | "linteffect/no-workflow-in-behavior-pipe" | "linteffect/no-mixed-pillar-function" | "linteffect/no-clever-effect-expression" | "linteffect/prefer-extracted-concept" | "linteffect/prefer-effect-service" | "linteffect/no-layer-provide-in-service-definition" | "linteffect/require-service-accessors" | "linteffect/require-service-dependencies" | "linteffect/no-namespace-effect-import" | "linteffect/no-manual-service-object-export" | "linteffect/no-layer-merge-in-request-handler" | "linteffect/no-service-method-returning-promise" | "linteffect/prefer-layer-pipe" | "linteffect/no-inline-layer-provide-in-program" | "linteffect/prefer-layer-mergeall-for-infrastructure" | "linteffect/no-service-layer-scatter" | "linteffect/no-match-void-branch" | "linteffect/no-json-parse-without-schema" | "linteffect/no-date-now-in-effect" | "linteffect/no-new-date-in-domain-logic" | "linteffect/no-match-effect-branch" | "linteffect/warn-effect-sync-wrapper" | "linteffect/no-effect-side-effect-wrapper" | "linteffect/no-effect-all-step-sequencing" | "linteffect/no-async-effect-combinator-callback" | "linteffect/no-throw-in-effect-logic" | "linteffect/no-or-die-outside-boundary" | "linteffect/no-swallowed-catch-all" | "linteffect/no-effect-ignore" | "linteffect/no-try-catch-in-effect-logic" | "linteffect/no-promise-api-in-effect-logic" | "linteffect/no-try-catch" | "linteffect/no-effect-wrapper-alias" | "linteffect/no-manual-effect-channels" | "linteffect/no-wrapgraphql-catchall" | "linteffect/no-render-side-effects" | "linteffect/no-atom-registry-effect-sync" | "linteffect/no-family-collection-read" | "linteffect/no-inline-runtime-provide" | "linteffect/no-naked-object-state-update" | "linteffect/no-effect-succeed-variable" | "linteffect/no-effect-type-alias" | "linteffect/no-public-generic-effect-error" | "linteffect/no-model-overlay-cast" | "linteffect/no-unknown-boolean-coercion-helper" | "linteffect/no-fromnullable-nullish-coalesce" | "linteffect/no-option-boolean-normalization" | "linteffect/no-string-sentinel-return" | "linteffect/no-string-sentinel-const" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-hidden-effect-execution" | "linteffect/no-boundary-try-catch-without-effect-map" | "linteffect/no-node-fs-in-effect-code" | "linteffect/no-node-platform-in-shared-code" | "linteffect/no-process-env-direct-read" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only" | "linteffect/no-effect-as" | "linteffect/no-effect-do" | "linteffect/no-effect-bind" | "linteffect/no-runtime-runfork" | "linteffect/no-run-effect-outside-boundary" | "linteffect/no-effect-async" | "linteffect/prevent-dynamic-imports" | "linteffect/no-nested-effect-call" | "linteffect/no-effect-ladder" | "linteffect/no-flatmap-ladder" | "linteffect/no-pipe-ladder" | "linteffect/no-call-tower" | "linteffect/no-effect-orElse-ladder" | "linteffect/no-unbounded-effect-all" | "linteffect/no-fire-and-forget-fork" | "linteffect/no-fork-in-loop" | "linteffect/no-race-without-cleanup" | "linteffect/no-unobserved-fiber" | "linteffect/no-unbounded-concurrent-retry" | "linteffect/no-blocking-call-in-effect" | "linteffect/no-promise-concurrency-in-effect" | "linteffect/no-shared-mutable-state-across-fibers" | "linteffect/no-timeout-with-noninterruptible-promise" | "linteffect/no-uninterruptible-concurrent-region" | "linteffect/no-unbounded-queue-or-pubsub" | "linteffect/no-global-mutable-concurrency-state" | "linteffect/no-acquire-without-scoped-release" | "linteffect/no-manual-resource-close" | "linteffect/no-unbound-scope", "error">;
|
|
42
|
+
declare const allRules: Record<"linteffect/no-react-state" | "linteffect/no-if-statement" | "linteffect/no-switch-statement" | "linteffect/no-ternary" | "linteffect/no-return-null" | "linteffect/no-option-as" | "linteffect/no-effect-never" | "linteffect/no-arrow-ladder" | "linteffect/no-branch-in-object" | "linteffect/no-iife-wrapper" | "linteffect/no-return-in-arrow" | "linteffect/no-return-in-callback" | "linteffect/no-effect-fn-generator" | "linteffect/no-effect-sync-console" | "linteffect/no-console-in-effect-flow" | "linteffect/no-effect-log-without-structured-context" | "linteffect/require-span-on-public-service-method" | "linteffect/no-runpromise-in-non-async-test-body" | "linteffect/require-effect-flip-for-error-test" | "linteffect/no-test-mock-layer-when-default-available" | "linteffect/no-nested-effect-gen" | "linteffect/no-yield-without-star-in-effect-gen" | "linteffect/no-piped-yield-in-gen" | "linteffect/no-gen-for-mapping" | "linteffect/prefer-gen-for-workflow" | "linteffect/no-large-anonymous-flow" | "linteffect/no-effect-in-flow" | "linteffect/prefer-named-flow" | "linteffect/prefer-pipe-for-behavior" | "linteffect/prefer-decorated-effect-before-gen" | "linteffect/no-workflow-in-behavior-pipe" | "linteffect/no-mixed-pillar-function" | "linteffect/no-clever-effect-expression" | "linteffect/prefer-extracted-concept" | "linteffect/prefer-effect-service" | "linteffect/no-layer-provide-in-service-definition" | "linteffect/require-service-accessors" | "linteffect/require-service-dependencies" | "linteffect/no-namespace-effect-import" | "linteffect/no-manual-service-object-export" | "linteffect/no-layer-merge-in-request-handler" | "linteffect/no-service-method-returning-promise" | "linteffect/prefer-layer-pipe" | "linteffect/no-inline-layer-provide-in-program" | "linteffect/prefer-layer-mergeall-for-infrastructure" | "linteffect/no-service-layer-scatter" | "linteffect/no-match-void-branch" | "linteffect/no-json-parse-without-schema" | "linteffect/no-date-now-in-effect" | "linteffect/no-new-date-in-domain-logic" | "linteffect/no-match-effect-branch" | "linteffect/warn-effect-sync-wrapper" | "linteffect/no-effect-side-effect-wrapper" | "linteffect/no-effect-all-step-sequencing" | "linteffect/no-async-effect-combinator-callback" | "linteffect/no-throw-in-effect-logic" | "linteffect/no-or-die-outside-boundary" | "linteffect/no-swallowed-catch-all" | "linteffect/no-effect-ignore" | "linteffect/no-try-catch-in-effect-logic" | "linteffect/no-promise-api-in-effect-logic" | "linteffect/no-try-catch" | "linteffect/no-effect-wrapper-alias" | "linteffect/no-manual-effect-channels" | "linteffect/no-wrapgraphql-catchall" | "linteffect/no-render-side-effects" | "linteffect/no-atom-registry-effect-sync" | "linteffect/no-family-collection-read" | "linteffect/no-inline-runtime-provide" | "linteffect/no-naked-object-state-update" | "linteffect/no-effect-succeed-variable" | "linteffect/no-effect-type-alias" | "linteffect/no-public-generic-effect-error" | "linteffect/no-effect-fail-error-message" | "linteffect/no-catchall-generic-rethrow" | "linteffect/no-log-only-error-handling" | "linteffect/no-error-as-public-effect-error" | "linteffect/no-unknown-public-error-channel" | "linteffect/no-mixed-effect-error-shapes" | "linteffect/no-model-overlay-cast" | "linteffect/no-unknown-boolean-coercion-helper" | "linteffect/no-fromnullable-nullish-coalesce" | "linteffect/no-option-boolean-normalization" | "linteffect/no-string-sentinel-return" | "linteffect/no-string-sentinel-const" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-hidden-effect-execution" | "linteffect/no-boundary-try-catch-without-effect-map" | "linteffect/no-node-fs-in-effect-code" | "linteffect/no-node-platform-in-shared-code" | "linteffect/no-process-env-direct-read" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only" | "linteffect/no-effect-as" | "linteffect/no-effect-do" | "linteffect/no-effect-bind" | "linteffect/no-runtime-runfork" | "linteffect/no-run-effect-outside-boundary" | "linteffect/no-effect-async" | "linteffect/prevent-dynamic-imports" | "linteffect/no-nested-effect-call" | "linteffect/no-effect-ladder" | "linteffect/no-flatmap-ladder" | "linteffect/no-pipe-ladder" | "linteffect/no-call-tower" | "linteffect/no-effect-orElse-ladder" | "linteffect/no-unbounded-effect-all" | "linteffect/no-fire-and-forget-fork" | "linteffect/no-fork-in-loop" | "linteffect/no-race-without-cleanup" | "linteffect/no-unobserved-fiber" | "linteffect/no-unbounded-concurrent-retry" | "linteffect/no-blocking-call-in-effect" | "linteffect/no-promise-concurrency-in-effect" | "linteffect/no-shared-mutable-state-across-fibers" | "linteffect/no-timeout-with-noninterruptible-promise" | "linteffect/no-uninterruptible-concurrent-region" | "linteffect/no-unbounded-queue-or-pubsub" | "linteffect/no-global-mutable-concurrency-state" | "linteffect/no-manual-deferred-coordination" | "linteffect/no-acquire-without-scoped-release" | "linteffect/no-manual-resource-close" | "linteffect/no-unbound-scope" | "linteffect/no-resource-succeed-escape" | "linteffect/no-yield-with-held-semaphore-permit" | "linteffect/no-yield-with-held-mutable-ref" | "linteffect/no-unscoped-background-fiber", "error">;
|
|
43
|
+
declare const recommendedRules: Record<"linteffect/no-react-state" | "linteffect/no-if-statement" | "linteffect/no-switch-statement" | "linteffect/no-ternary" | "linteffect/no-return-null" | "linteffect/no-option-as" | "linteffect/no-effect-never" | "linteffect/no-arrow-ladder" | "linteffect/no-branch-in-object" | "linteffect/no-iife-wrapper" | "linteffect/no-return-in-arrow" | "linteffect/no-return-in-callback" | "linteffect/no-effect-fn-generator" | "linteffect/no-effect-sync-console" | "linteffect/no-console-in-effect-flow" | "linteffect/no-effect-log-without-structured-context" | "linteffect/require-span-on-public-service-method" | "linteffect/no-nested-effect-gen" | "linteffect/no-yield-without-star-in-effect-gen" | "linteffect/no-piped-yield-in-gen" | "linteffect/no-gen-for-mapping" | "linteffect/prefer-gen-for-workflow" | "linteffect/no-large-anonymous-flow" | "linteffect/no-effect-in-flow" | "linteffect/prefer-named-flow" | "linteffect/prefer-pipe-for-behavior" | "linteffect/prefer-decorated-effect-before-gen" | "linteffect/no-workflow-in-behavior-pipe" | "linteffect/no-mixed-pillar-function" | "linteffect/no-clever-effect-expression" | "linteffect/prefer-extracted-concept" | "linteffect/prefer-effect-service" | "linteffect/no-layer-provide-in-service-definition" | "linteffect/require-service-accessors" | "linteffect/require-service-dependencies" | "linteffect/no-namespace-effect-import" | "linteffect/no-manual-service-object-export" | "linteffect/no-layer-merge-in-request-handler" | "linteffect/no-service-method-returning-promise" | "linteffect/prefer-layer-pipe" | "linteffect/no-inline-layer-provide-in-program" | "linteffect/prefer-layer-mergeall-for-infrastructure" | "linteffect/no-service-layer-scatter" | "linteffect/no-match-void-branch" | "linteffect/no-json-parse-without-schema" | "linteffect/no-date-now-in-effect" | "linteffect/no-new-date-in-domain-logic" | "linteffect/no-match-effect-branch" | "linteffect/warn-effect-sync-wrapper" | "linteffect/no-effect-side-effect-wrapper" | "linteffect/no-effect-all-step-sequencing" | "linteffect/no-async-effect-combinator-callback" | "linteffect/no-throw-in-effect-logic" | "linteffect/no-or-die-outside-boundary" | "linteffect/no-swallowed-catch-all" | "linteffect/no-effect-ignore" | "linteffect/no-try-catch-in-effect-logic" | "linteffect/no-promise-api-in-effect-logic" | "linteffect/no-try-catch" | "linteffect/no-effect-wrapper-alias" | "linteffect/no-manual-effect-channels" | "linteffect/no-wrapgraphql-catchall" | "linteffect/no-render-side-effects" | "linteffect/no-atom-registry-effect-sync" | "linteffect/no-family-collection-read" | "linteffect/no-inline-runtime-provide" | "linteffect/no-naked-object-state-update" | "linteffect/no-effect-succeed-variable" | "linteffect/no-effect-type-alias" | "linteffect/no-public-generic-effect-error" | "linteffect/no-effect-fail-error-message" | "linteffect/no-catchall-generic-rethrow" | "linteffect/no-log-only-error-handling" | "linteffect/no-model-overlay-cast" | "linteffect/no-unknown-boolean-coercion-helper" | "linteffect/no-fromnullable-nullish-coalesce" | "linteffect/no-option-boolean-normalization" | "linteffect/no-string-sentinel-return" | "linteffect/no-string-sentinel-const" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-hidden-effect-execution" | "linteffect/no-boundary-try-catch-without-effect-map" | "linteffect/no-node-fs-in-effect-code" | "linteffect/no-node-platform-in-shared-code" | "linteffect/no-process-env-direct-read" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only" | "linteffect/no-effect-as" | "linteffect/no-effect-do" | "linteffect/no-effect-bind" | "linteffect/no-runtime-runfork" | "linteffect/no-run-effect-outside-boundary" | "linteffect/no-effect-async" | "linteffect/prevent-dynamic-imports" | "linteffect/no-nested-effect-call" | "linteffect/no-effect-ladder" | "linteffect/no-flatmap-ladder" | "linteffect/no-pipe-ladder" | "linteffect/no-call-tower" | "linteffect/no-effect-orElse-ladder" | "linteffect/no-unbounded-effect-all" | "linteffect/no-fire-and-forget-fork" | "linteffect/no-fork-in-loop" | "linteffect/no-race-without-cleanup" | "linteffect/no-unobserved-fiber" | "linteffect/no-unbounded-concurrent-retry" | "linteffect/no-blocking-call-in-effect" | "linteffect/no-promise-concurrency-in-effect" | "linteffect/no-shared-mutable-state-across-fibers" | "linteffect/no-timeout-with-noninterruptible-promise" | "linteffect/no-uninterruptible-concurrent-region" | "linteffect/no-unbounded-queue-or-pubsub" | "linteffect/no-global-mutable-concurrency-state" | "linteffect/no-acquire-without-scoped-release" | "linteffect/no-manual-resource-close" | "linteffect/no-unbound-scope", "error">;
|
|
24
44
|
declare const ruleGroups: {
|
|
25
45
|
readonly reactAndRuntimeBoundaries: Record<"linteffect/no-react-state" | "linteffect/no-or-die-outside-boundary" | "linteffect/no-render-side-effects" | "linteffect/no-inline-runtime-provide" | "linteffect/no-runtime-runfork" | "linteffect/no-run-effect-outside-boundary" | "linteffect/prevent-dynamic-imports", "error">;
|
|
26
46
|
readonly effectComposition: Record<"linteffect/no-effect-never" | "linteffect/no-effect-fn-generator" | "linteffect/no-nested-effect-gen" | "linteffect/no-yield-without-star-in-effect-gen" | "linteffect/no-async-effect-combinator-callback" | "linteffect/no-throw-in-effect-logic" | "linteffect/no-swallowed-catch-all" | "linteffect/no-effect-ignore" | "linteffect/no-try-catch-in-effect-logic" | "linteffect/no-promise-api-in-effect-logic" | "linteffect/no-manual-effect-channels" | "linteffect/no-effect-type-alias" | "linteffect/no-public-generic-effect-error" | "linteffect/no-effect-as" | "linteffect/no-effect-do" | "linteffect/no-effect-bind" | "linteffect/no-effect-async", "error">;
|
|
@@ -31,6 +51,26 @@ declare const ruleGroups: {
|
|
|
31
51
|
readonly optionMatchAndDataNormalization: Record<"linteffect/no-option-as" | "linteffect/no-match-void-branch" | "linteffect/no-match-effect-branch" | "linteffect/no-model-overlay-cast" | "linteffect/no-unknown-boolean-coercion-helper" | "linteffect/no-fromnullable-nullish-coalesce" | "linteffect/no-option-boolean-normalization" | "linteffect/no-string-sentinel-return" | "linteffect/no-string-sentinel-const", "error">;
|
|
32
52
|
readonly atomStateAndPlatformBoundaries: Record<"linteffect/no-effect-sync-console" | "linteffect/no-wrapgraphql-catchall" | "linteffect/no-atom-registry-effect-sync" | "linteffect/no-family-collection-read" | "linteffect/no-naked-object-state-update", "error">;
|
|
33
53
|
readonly domainModeling: Record<"linteffect/no-new-date-in-domain-logic" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only", "error">;
|
|
54
|
+
readonly errorModeling: Record<"linteffect/no-effect-fail-error-message" | "linteffect/no-catchall-generic-rethrow" | "linteffect/no-log-only-error-handling" | "linteffect/no-error-as-public-effect-error" | "linteffect/no-unknown-public-error-channel" | "linteffect/no-mixed-effect-error-shapes", "error">;
|
|
55
|
+
readonly ddd: {
|
|
56
|
+
readonly "linteffect/no-effect-fail-error-message": "error";
|
|
57
|
+
readonly "linteffect/no-catchall-generic-rethrow": "error";
|
|
58
|
+
readonly "linteffect/no-log-only-error-handling": "error";
|
|
59
|
+
readonly "linteffect/no-error-as-public-effect-error": "error";
|
|
60
|
+
readonly "linteffect/no-unknown-public-error-channel": "error";
|
|
61
|
+
readonly "linteffect/no-mixed-effect-error-shapes": "error";
|
|
62
|
+
readonly "linteffect/no-new-date-in-domain-logic": "error";
|
|
63
|
+
readonly "linteffect/no-raw-domain-id-alias": "error";
|
|
64
|
+
readonly "linteffect/no-boolean-domain-flag": "error";
|
|
65
|
+
readonly "linteffect/no-magic-domain-string": "error";
|
|
66
|
+
readonly "linteffect/no-raw-domain-primitive-params": "error";
|
|
67
|
+
readonly "linteffect/no-raw-time-domain-field": "error";
|
|
68
|
+
readonly "linteffect/no-overloaded-options-object": "error";
|
|
69
|
+
readonly "linteffect/no-domain-logic-in-conditional": "error";
|
|
70
|
+
readonly "linteffect/no-implicit-state-machine-object": "error";
|
|
71
|
+
readonly "linteffect/no-adhoc-domain-error": "error";
|
|
72
|
+
readonly "linteffect/no-domain-meaning-by-folder-only": "error";
|
|
73
|
+
};
|
|
34
74
|
readonly effectFlow: Record<"linteffect/no-piped-yield-in-gen" | "linteffect/no-gen-for-mapping" | "linteffect/prefer-gen-for-workflow", "error">;
|
|
35
75
|
readonly pureTransformation: Record<"linteffect/no-large-anonymous-flow" | "linteffect/no-effect-in-flow" | "linteffect/prefer-named-flow", "error">;
|
|
36
76
|
readonly behaviorDecoration: Record<"linteffect/prefer-pipe-for-behavior" | "linteffect/prefer-decorated-effect-before-gen" | "linteffect/no-workflow-in-behavior-pipe", "error">;
|
|
@@ -38,14 +78,13 @@ declare const ruleGroups: {
|
|
|
38
78
|
readonly serviceAndLayerArchitecture: Record<"linteffect/prefer-effect-service" | "linteffect/no-layer-provide-in-service-definition" | "linteffect/require-service-accessors" | "linteffect/require-service-dependencies" | "linteffect/no-namespace-effect-import" | "linteffect/no-manual-service-object-export" | "linteffect/no-layer-merge-in-request-handler" | "linteffect/no-service-method-returning-promise" | "linteffect/prefer-layer-pipe" | "linteffect/no-inline-layer-provide-in-program" | "linteffect/prefer-layer-mergeall-for-infrastructure" | "linteffect/no-service-layer-scatter", "error">;
|
|
39
79
|
readonly platformAndBoundaryHygiene: Record<"linteffect/no-json-parse-without-schema" | "linteffect/no-date-now-in-effect" | "linteffect/no-hidden-effect-execution" | "linteffect/no-boundary-try-catch-without-effect-map" | "linteffect/no-node-fs-in-effect-code" | "linteffect/no-node-platform-in-shared-code" | "linteffect/no-process-env-direct-read", "error">;
|
|
40
80
|
readonly testingObservabilityAndQa: Record<"linteffect/no-console-in-effect-flow" | "linteffect/no-effect-log-without-structured-context" | "linteffect/require-span-on-public-service-method" | "linteffect/no-runpromise-in-non-async-test-body" | "linteffect/require-effect-flip-for-error-test" | "linteffect/no-test-mock-layer-when-default-available", "error">;
|
|
41
|
-
readonly ddd: Record<"linteffect/no-new-date-in-domain-logic" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only", "error">;
|
|
42
81
|
};
|
|
43
82
|
declare const recommended: {
|
|
44
83
|
readonly jsPlugins: readonly [{
|
|
45
84
|
readonly name: "linteffect";
|
|
46
85
|
readonly specifier: "@opsydyn/oxlint-effect";
|
|
47
86
|
}];
|
|
48
|
-
readonly rules: Record<"linteffect/no-react-state" | "linteffect/no-if-statement" | "linteffect/no-switch-statement" | "linteffect/no-ternary" | "linteffect/no-return-null" | "linteffect/no-option-as" | "linteffect/no-effect-never" | "linteffect/no-arrow-ladder" | "linteffect/no-branch-in-object" | "linteffect/no-iife-wrapper" | "linteffect/no-return-in-arrow" | "linteffect/no-return-in-callback" | "linteffect/no-effect-fn-generator" | "linteffect/no-effect-sync-console" | "linteffect/no-console-in-effect-flow" | "linteffect/no-effect-log-without-structured-context" | "linteffect/require-span-on-public-service-method" | "linteffect/no-nested-effect-gen" | "linteffect/no-yield-without-star-in-effect-gen" | "linteffect/no-piped-yield-in-gen" | "linteffect/no-gen-for-mapping" | "linteffect/prefer-gen-for-workflow" | "linteffect/no-large-anonymous-flow" | "linteffect/no-effect-in-flow" | "linteffect/prefer-named-flow" | "linteffect/prefer-pipe-for-behavior" | "linteffect/prefer-decorated-effect-before-gen" | "linteffect/no-workflow-in-behavior-pipe" | "linteffect/no-mixed-pillar-function" | "linteffect/no-clever-effect-expression" | "linteffect/prefer-extracted-concept" | "linteffect/prefer-effect-service" | "linteffect/no-layer-provide-in-service-definition" | "linteffect/require-service-accessors" | "linteffect/require-service-dependencies" | "linteffect/no-namespace-effect-import" | "linteffect/no-manual-service-object-export" | "linteffect/no-layer-merge-in-request-handler" | "linteffect/no-service-method-returning-promise" | "linteffect/prefer-layer-pipe" | "linteffect/no-inline-layer-provide-in-program" | "linteffect/prefer-layer-mergeall-for-infrastructure" | "linteffect/no-service-layer-scatter" | "linteffect/no-match-void-branch" | "linteffect/no-json-parse-without-schema" | "linteffect/no-date-now-in-effect" | "linteffect/no-new-date-in-domain-logic" | "linteffect/no-match-effect-branch" | "linteffect/warn-effect-sync-wrapper" | "linteffect/no-effect-side-effect-wrapper" | "linteffect/no-effect-all-step-sequencing" | "linteffect/no-async-effect-combinator-callback" | "linteffect/no-throw-in-effect-logic" | "linteffect/no-or-die-outside-boundary" | "linteffect/no-swallowed-catch-all" | "linteffect/no-effect-ignore" | "linteffect/no-try-catch-in-effect-logic" | "linteffect/no-promise-api-in-effect-logic" | "linteffect/no-try-catch" | "linteffect/no-effect-wrapper-alias" | "linteffect/no-manual-effect-channels" | "linteffect/no-wrapgraphql-catchall" | "linteffect/no-render-side-effects" | "linteffect/no-atom-registry-effect-sync" | "linteffect/no-family-collection-read" | "linteffect/no-inline-runtime-provide" | "linteffect/no-naked-object-state-update" | "linteffect/no-effect-succeed-variable" | "linteffect/no-effect-type-alias" | "linteffect/no-public-generic-effect-error" | "linteffect/no-model-overlay-cast" | "linteffect/no-unknown-boolean-coercion-helper" | "linteffect/no-fromnullable-nullish-coalesce" | "linteffect/no-option-boolean-normalization" | "linteffect/no-string-sentinel-return" | "linteffect/no-string-sentinel-const" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-hidden-effect-execution" | "linteffect/no-boundary-try-catch-without-effect-map" | "linteffect/no-node-fs-in-effect-code" | "linteffect/no-node-platform-in-shared-code" | "linteffect/no-process-env-direct-read" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only" | "linteffect/no-effect-as" | "linteffect/no-effect-do" | "linteffect/no-effect-bind" | "linteffect/no-runtime-runfork" | "linteffect/no-run-effect-outside-boundary" | "linteffect/no-effect-async" | "linteffect/prevent-dynamic-imports" | "linteffect/no-nested-effect-call" | "linteffect/no-effect-ladder" | "linteffect/no-flatmap-ladder" | "linteffect/no-pipe-ladder" | "linteffect/no-call-tower" | "linteffect/no-effect-orElse-ladder" | "linteffect/no-unbounded-effect-all" | "linteffect/no-fire-and-forget-fork" | "linteffect/no-fork-in-loop" | "linteffect/no-race-without-cleanup" | "linteffect/no-unobserved-fiber" | "linteffect/no-unbounded-concurrent-retry" | "linteffect/no-blocking-call-in-effect" | "linteffect/no-promise-concurrency-in-effect" | "linteffect/no-shared-mutable-state-across-fibers" | "linteffect/no-timeout-with-noninterruptible-promise" | "linteffect/no-uninterruptible-concurrent-region" | "linteffect/no-unbounded-queue-or-pubsub" | "linteffect/no-global-mutable-concurrency-state" | "linteffect/no-acquire-without-scoped-release" | "linteffect/no-manual-resource-close" | "linteffect/no-unbound-scope", "error">;
|
|
87
|
+
readonly rules: Record<"linteffect/no-react-state" | "linteffect/no-if-statement" | "linteffect/no-switch-statement" | "linteffect/no-ternary" | "linteffect/no-return-null" | "linteffect/no-option-as" | "linteffect/no-effect-never" | "linteffect/no-arrow-ladder" | "linteffect/no-branch-in-object" | "linteffect/no-iife-wrapper" | "linteffect/no-return-in-arrow" | "linteffect/no-return-in-callback" | "linteffect/no-effect-fn-generator" | "linteffect/no-effect-sync-console" | "linteffect/no-console-in-effect-flow" | "linteffect/no-effect-log-without-structured-context" | "linteffect/require-span-on-public-service-method" | "linteffect/no-nested-effect-gen" | "linteffect/no-yield-without-star-in-effect-gen" | "linteffect/no-piped-yield-in-gen" | "linteffect/no-gen-for-mapping" | "linteffect/prefer-gen-for-workflow" | "linteffect/no-large-anonymous-flow" | "linteffect/no-effect-in-flow" | "linteffect/prefer-named-flow" | "linteffect/prefer-pipe-for-behavior" | "linteffect/prefer-decorated-effect-before-gen" | "linteffect/no-workflow-in-behavior-pipe" | "linteffect/no-mixed-pillar-function" | "linteffect/no-clever-effect-expression" | "linteffect/prefer-extracted-concept" | "linteffect/prefer-effect-service" | "linteffect/no-layer-provide-in-service-definition" | "linteffect/require-service-accessors" | "linteffect/require-service-dependencies" | "linteffect/no-namespace-effect-import" | "linteffect/no-manual-service-object-export" | "linteffect/no-layer-merge-in-request-handler" | "linteffect/no-service-method-returning-promise" | "linteffect/prefer-layer-pipe" | "linteffect/no-inline-layer-provide-in-program" | "linteffect/prefer-layer-mergeall-for-infrastructure" | "linteffect/no-service-layer-scatter" | "linteffect/no-match-void-branch" | "linteffect/no-json-parse-without-schema" | "linteffect/no-date-now-in-effect" | "linteffect/no-new-date-in-domain-logic" | "linteffect/no-match-effect-branch" | "linteffect/warn-effect-sync-wrapper" | "linteffect/no-effect-side-effect-wrapper" | "linteffect/no-effect-all-step-sequencing" | "linteffect/no-async-effect-combinator-callback" | "linteffect/no-throw-in-effect-logic" | "linteffect/no-or-die-outside-boundary" | "linteffect/no-swallowed-catch-all" | "linteffect/no-effect-ignore" | "linteffect/no-try-catch-in-effect-logic" | "linteffect/no-promise-api-in-effect-logic" | "linteffect/no-try-catch" | "linteffect/no-effect-wrapper-alias" | "linteffect/no-manual-effect-channels" | "linteffect/no-wrapgraphql-catchall" | "linteffect/no-render-side-effects" | "linteffect/no-atom-registry-effect-sync" | "linteffect/no-family-collection-read" | "linteffect/no-inline-runtime-provide" | "linteffect/no-naked-object-state-update" | "linteffect/no-effect-succeed-variable" | "linteffect/no-effect-type-alias" | "linteffect/no-public-generic-effect-error" | "linteffect/no-effect-fail-error-message" | "linteffect/no-catchall-generic-rethrow" | "linteffect/no-log-only-error-handling" | "linteffect/no-model-overlay-cast" | "linteffect/no-unknown-boolean-coercion-helper" | "linteffect/no-fromnullable-nullish-coalesce" | "linteffect/no-option-boolean-normalization" | "linteffect/no-string-sentinel-return" | "linteffect/no-string-sentinel-const" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-hidden-effect-execution" | "linteffect/no-boundary-try-catch-without-effect-map" | "linteffect/no-node-fs-in-effect-code" | "linteffect/no-node-platform-in-shared-code" | "linteffect/no-process-env-direct-read" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only" | "linteffect/no-effect-as" | "linteffect/no-effect-do" | "linteffect/no-effect-bind" | "linteffect/no-runtime-runfork" | "linteffect/no-run-effect-outside-boundary" | "linteffect/no-effect-async" | "linteffect/prevent-dynamic-imports" | "linteffect/no-nested-effect-call" | "linteffect/no-effect-ladder" | "linteffect/no-flatmap-ladder" | "linteffect/no-pipe-ladder" | "linteffect/no-call-tower" | "linteffect/no-effect-orElse-ladder" | "linteffect/no-unbounded-effect-all" | "linteffect/no-fire-and-forget-fork" | "linteffect/no-fork-in-loop" | "linteffect/no-race-without-cleanup" | "linteffect/no-unobserved-fiber" | "linteffect/no-unbounded-concurrent-retry" | "linteffect/no-blocking-call-in-effect" | "linteffect/no-promise-concurrency-in-effect" | "linteffect/no-shared-mutable-state-across-fibers" | "linteffect/no-timeout-with-noninterruptible-promise" | "linteffect/no-uninterruptible-concurrent-region" | "linteffect/no-unbounded-queue-or-pubsub" | "linteffect/no-global-mutable-concurrency-state" | "linteffect/no-acquire-without-scoped-release" | "linteffect/no-manual-resource-close" | "linteffect/no-unbound-scope", "error">;
|
|
49
88
|
};
|
|
50
89
|
declare const reactAndRuntimeBoundaries: {
|
|
51
90
|
readonly jsPlugins: readonly [{
|
|
@@ -110,12 +149,37 @@ declare const domainModeling: {
|
|
|
110
149
|
}];
|
|
111
150
|
readonly rules: Record<"linteffect/no-new-date-in-domain-logic" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only", "error">;
|
|
112
151
|
};
|
|
152
|
+
declare const errorModeling: {
|
|
153
|
+
readonly jsPlugins: readonly [{
|
|
154
|
+
readonly name: "linteffect";
|
|
155
|
+
readonly specifier: "@opsydyn/oxlint-effect";
|
|
156
|
+
}];
|
|
157
|
+
readonly rules: Record<"linteffect/no-effect-fail-error-message" | "linteffect/no-catchall-generic-rethrow" | "linteffect/no-log-only-error-handling" | "linteffect/no-error-as-public-effect-error" | "linteffect/no-unknown-public-error-channel" | "linteffect/no-mixed-effect-error-shapes", "error">;
|
|
158
|
+
};
|
|
113
159
|
declare const ddd: {
|
|
114
160
|
readonly jsPlugins: readonly [{
|
|
115
161
|
readonly name: "linteffect";
|
|
116
162
|
readonly specifier: "@opsydyn/oxlint-effect";
|
|
117
163
|
}];
|
|
118
|
-
readonly rules:
|
|
164
|
+
readonly rules: {
|
|
165
|
+
readonly "linteffect/no-effect-fail-error-message": "error";
|
|
166
|
+
readonly "linteffect/no-catchall-generic-rethrow": "error";
|
|
167
|
+
readonly "linteffect/no-log-only-error-handling": "error";
|
|
168
|
+
readonly "linteffect/no-error-as-public-effect-error": "error";
|
|
169
|
+
readonly "linteffect/no-unknown-public-error-channel": "error";
|
|
170
|
+
readonly "linteffect/no-mixed-effect-error-shapes": "error";
|
|
171
|
+
readonly "linteffect/no-new-date-in-domain-logic": "error";
|
|
172
|
+
readonly "linteffect/no-raw-domain-id-alias": "error";
|
|
173
|
+
readonly "linteffect/no-boolean-domain-flag": "error";
|
|
174
|
+
readonly "linteffect/no-magic-domain-string": "error";
|
|
175
|
+
readonly "linteffect/no-raw-domain-primitive-params": "error";
|
|
176
|
+
readonly "linteffect/no-raw-time-domain-field": "error";
|
|
177
|
+
readonly "linteffect/no-overloaded-options-object": "error";
|
|
178
|
+
readonly "linteffect/no-domain-logic-in-conditional": "error";
|
|
179
|
+
readonly "linteffect/no-implicit-state-machine-object": "error";
|
|
180
|
+
readonly "linteffect/no-adhoc-domain-error": "error";
|
|
181
|
+
readonly "linteffect/no-domain-meaning-by-folder-only": "error";
|
|
182
|
+
};
|
|
119
183
|
};
|
|
120
184
|
declare const effectFlow: {
|
|
121
185
|
readonly jsPlugins: readonly [{
|
|
@@ -172,7 +236,7 @@ declare const presets: {
|
|
|
172
236
|
readonly name: "linteffect";
|
|
173
237
|
readonly specifier: "@opsydyn/oxlint-effect";
|
|
174
238
|
}];
|
|
175
|
-
readonly rules: Record<"linteffect/no-react-state" | "linteffect/no-if-statement" | "linteffect/no-switch-statement" | "linteffect/no-ternary" | "linteffect/no-return-null" | "linteffect/no-option-as" | "linteffect/no-effect-never" | "linteffect/no-arrow-ladder" | "linteffect/no-branch-in-object" | "linteffect/no-iife-wrapper" | "linteffect/no-return-in-arrow" | "linteffect/no-return-in-callback" | "linteffect/no-effect-fn-generator" | "linteffect/no-effect-sync-console" | "linteffect/no-console-in-effect-flow" | "linteffect/no-effect-log-without-structured-context" | "linteffect/require-span-on-public-service-method" | "linteffect/no-nested-effect-gen" | "linteffect/no-yield-without-star-in-effect-gen" | "linteffect/no-piped-yield-in-gen" | "linteffect/no-gen-for-mapping" | "linteffect/prefer-gen-for-workflow" | "linteffect/no-large-anonymous-flow" | "linteffect/no-effect-in-flow" | "linteffect/prefer-named-flow" | "linteffect/prefer-pipe-for-behavior" | "linteffect/prefer-decorated-effect-before-gen" | "linteffect/no-workflow-in-behavior-pipe" | "linteffect/no-mixed-pillar-function" | "linteffect/no-clever-effect-expression" | "linteffect/prefer-extracted-concept" | "linteffect/prefer-effect-service" | "linteffect/no-layer-provide-in-service-definition" | "linteffect/require-service-accessors" | "linteffect/require-service-dependencies" | "linteffect/no-namespace-effect-import" | "linteffect/no-manual-service-object-export" | "linteffect/no-layer-merge-in-request-handler" | "linteffect/no-service-method-returning-promise" | "linteffect/prefer-layer-pipe" | "linteffect/no-inline-layer-provide-in-program" | "linteffect/prefer-layer-mergeall-for-infrastructure" | "linteffect/no-service-layer-scatter" | "linteffect/no-match-void-branch" | "linteffect/no-json-parse-without-schema" | "linteffect/no-date-now-in-effect" | "linteffect/no-new-date-in-domain-logic" | "linteffect/no-match-effect-branch" | "linteffect/warn-effect-sync-wrapper" | "linteffect/no-effect-side-effect-wrapper" | "linteffect/no-effect-all-step-sequencing" | "linteffect/no-async-effect-combinator-callback" | "linteffect/no-throw-in-effect-logic" | "linteffect/no-or-die-outside-boundary" | "linteffect/no-swallowed-catch-all" | "linteffect/no-effect-ignore" | "linteffect/no-try-catch-in-effect-logic" | "linteffect/no-promise-api-in-effect-logic" | "linteffect/no-try-catch" | "linteffect/no-effect-wrapper-alias" | "linteffect/no-manual-effect-channels" | "linteffect/no-wrapgraphql-catchall" | "linteffect/no-render-side-effects" | "linteffect/no-atom-registry-effect-sync" | "linteffect/no-family-collection-read" | "linteffect/no-inline-runtime-provide" | "linteffect/no-naked-object-state-update" | "linteffect/no-effect-succeed-variable" | "linteffect/no-effect-type-alias" | "linteffect/no-public-generic-effect-error" | "linteffect/no-model-overlay-cast" | "linteffect/no-unknown-boolean-coercion-helper" | "linteffect/no-fromnullable-nullish-coalesce" | "linteffect/no-option-boolean-normalization" | "linteffect/no-string-sentinel-return" | "linteffect/no-string-sentinel-const" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-hidden-effect-execution" | "linteffect/no-boundary-try-catch-without-effect-map" | "linteffect/no-node-fs-in-effect-code" | "linteffect/no-node-platform-in-shared-code" | "linteffect/no-process-env-direct-read" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only" | "linteffect/no-effect-as" | "linteffect/no-effect-do" | "linteffect/no-effect-bind" | "linteffect/no-runtime-runfork" | "linteffect/no-run-effect-outside-boundary" | "linteffect/no-effect-async" | "linteffect/prevent-dynamic-imports" | "linteffect/no-nested-effect-call" | "linteffect/no-effect-ladder" | "linteffect/no-flatmap-ladder" | "linteffect/no-pipe-ladder" | "linteffect/no-call-tower" | "linteffect/no-effect-orElse-ladder" | "linteffect/no-unbounded-effect-all" | "linteffect/no-fire-and-forget-fork" | "linteffect/no-fork-in-loop" | "linteffect/no-race-without-cleanup" | "linteffect/no-unobserved-fiber" | "linteffect/no-unbounded-concurrent-retry" | "linteffect/no-blocking-call-in-effect" | "linteffect/no-promise-concurrency-in-effect" | "linteffect/no-shared-mutable-state-across-fibers" | "linteffect/no-timeout-with-noninterruptible-promise" | "linteffect/no-uninterruptible-concurrent-region" | "linteffect/no-unbounded-queue-or-pubsub" | "linteffect/no-global-mutable-concurrency-state" | "linteffect/no-acquire-without-scoped-release" | "linteffect/no-manual-resource-close" | "linteffect/no-unbound-scope", "error">;
|
|
239
|
+
readonly rules: Record<"linteffect/no-react-state" | "linteffect/no-if-statement" | "linteffect/no-switch-statement" | "linteffect/no-ternary" | "linteffect/no-return-null" | "linteffect/no-option-as" | "linteffect/no-effect-never" | "linteffect/no-arrow-ladder" | "linteffect/no-branch-in-object" | "linteffect/no-iife-wrapper" | "linteffect/no-return-in-arrow" | "linteffect/no-return-in-callback" | "linteffect/no-effect-fn-generator" | "linteffect/no-effect-sync-console" | "linteffect/no-console-in-effect-flow" | "linteffect/no-effect-log-without-structured-context" | "linteffect/require-span-on-public-service-method" | "linteffect/no-nested-effect-gen" | "linteffect/no-yield-without-star-in-effect-gen" | "linteffect/no-piped-yield-in-gen" | "linteffect/no-gen-for-mapping" | "linteffect/prefer-gen-for-workflow" | "linteffect/no-large-anonymous-flow" | "linteffect/no-effect-in-flow" | "linteffect/prefer-named-flow" | "linteffect/prefer-pipe-for-behavior" | "linteffect/prefer-decorated-effect-before-gen" | "linteffect/no-workflow-in-behavior-pipe" | "linteffect/no-mixed-pillar-function" | "linteffect/no-clever-effect-expression" | "linteffect/prefer-extracted-concept" | "linteffect/prefer-effect-service" | "linteffect/no-layer-provide-in-service-definition" | "linteffect/require-service-accessors" | "linteffect/require-service-dependencies" | "linteffect/no-namespace-effect-import" | "linteffect/no-manual-service-object-export" | "linteffect/no-layer-merge-in-request-handler" | "linteffect/no-service-method-returning-promise" | "linteffect/prefer-layer-pipe" | "linteffect/no-inline-layer-provide-in-program" | "linteffect/prefer-layer-mergeall-for-infrastructure" | "linteffect/no-service-layer-scatter" | "linteffect/no-match-void-branch" | "linteffect/no-json-parse-without-schema" | "linteffect/no-date-now-in-effect" | "linteffect/no-new-date-in-domain-logic" | "linteffect/no-match-effect-branch" | "linteffect/warn-effect-sync-wrapper" | "linteffect/no-effect-side-effect-wrapper" | "linteffect/no-effect-all-step-sequencing" | "linteffect/no-async-effect-combinator-callback" | "linteffect/no-throw-in-effect-logic" | "linteffect/no-or-die-outside-boundary" | "linteffect/no-swallowed-catch-all" | "linteffect/no-effect-ignore" | "linteffect/no-try-catch-in-effect-logic" | "linteffect/no-promise-api-in-effect-logic" | "linteffect/no-try-catch" | "linteffect/no-effect-wrapper-alias" | "linteffect/no-manual-effect-channels" | "linteffect/no-wrapgraphql-catchall" | "linteffect/no-render-side-effects" | "linteffect/no-atom-registry-effect-sync" | "linteffect/no-family-collection-read" | "linteffect/no-inline-runtime-provide" | "linteffect/no-naked-object-state-update" | "linteffect/no-effect-succeed-variable" | "linteffect/no-effect-type-alias" | "linteffect/no-public-generic-effect-error" | "linteffect/no-effect-fail-error-message" | "linteffect/no-catchall-generic-rethrow" | "linteffect/no-log-only-error-handling" | "linteffect/no-model-overlay-cast" | "linteffect/no-unknown-boolean-coercion-helper" | "linteffect/no-fromnullable-nullish-coalesce" | "linteffect/no-option-boolean-normalization" | "linteffect/no-string-sentinel-return" | "linteffect/no-string-sentinel-const" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-hidden-effect-execution" | "linteffect/no-boundary-try-catch-without-effect-map" | "linteffect/no-node-fs-in-effect-code" | "linteffect/no-node-platform-in-shared-code" | "linteffect/no-process-env-direct-read" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only" | "linteffect/no-effect-as" | "linteffect/no-effect-do" | "linteffect/no-effect-bind" | "linteffect/no-runtime-runfork" | "linteffect/no-run-effect-outside-boundary" | "linteffect/no-effect-async" | "linteffect/prevent-dynamic-imports" | "linteffect/no-nested-effect-call" | "linteffect/no-effect-ladder" | "linteffect/no-flatmap-ladder" | "linteffect/no-pipe-ladder" | "linteffect/no-call-tower" | "linteffect/no-effect-orElse-ladder" | "linteffect/no-unbounded-effect-all" | "linteffect/no-fire-and-forget-fork" | "linteffect/no-fork-in-loop" | "linteffect/no-race-without-cleanup" | "linteffect/no-unobserved-fiber" | "linteffect/no-unbounded-concurrent-retry" | "linteffect/no-blocking-call-in-effect" | "linteffect/no-promise-concurrency-in-effect" | "linteffect/no-shared-mutable-state-across-fibers" | "linteffect/no-timeout-with-noninterruptible-promise" | "linteffect/no-uninterruptible-concurrent-region" | "linteffect/no-unbounded-queue-or-pubsub" | "linteffect/no-global-mutable-concurrency-state" | "linteffect/no-acquire-without-scoped-release" | "linteffect/no-manual-resource-close" | "linteffect/no-unbound-scope", "error">;
|
|
176
240
|
};
|
|
177
241
|
readonly reactAndRuntimeBoundaries: {
|
|
178
242
|
readonly jsPlugins: readonly [{
|
|
@@ -237,12 +301,37 @@ declare const presets: {
|
|
|
237
301
|
}];
|
|
238
302
|
readonly rules: Record<"linteffect/no-new-date-in-domain-logic" | "linteffect/no-raw-domain-id-alias" | "linteffect/no-boolean-domain-flag" | "linteffect/no-magic-domain-string" | "linteffect/no-raw-domain-primitive-params" | "linteffect/no-raw-time-domain-field" | "linteffect/no-overloaded-options-object" | "linteffect/no-domain-logic-in-conditional" | "linteffect/no-implicit-state-machine-object" | "linteffect/no-adhoc-domain-error" | "linteffect/no-domain-meaning-by-folder-only", "error">;
|
|
239
303
|
};
|
|
304
|
+
readonly errorModeling: {
|
|
305
|
+
readonly jsPlugins: readonly [{
|
|
306
|
+
readonly name: "linteffect";
|
|
307
|
+
readonly specifier: "@opsydyn/oxlint-effect";
|
|
308
|
+
}];
|
|
309
|
+
readonly rules: Record<"linteffect/no-effect-fail-error-message" | "linteffect/no-catchall-generic-rethrow" | "linteffect/no-log-only-error-handling" | "linteffect/no-error-as-public-effect-error" | "linteffect/no-unknown-public-error-channel" | "linteffect/no-mixed-effect-error-shapes", "error">;
|
|
310
|
+
};
|
|
240
311
|
readonly ddd: {
|
|
241
312
|
readonly jsPlugins: readonly [{
|
|
242
313
|
readonly name: "linteffect";
|
|
243
314
|
readonly specifier: "@opsydyn/oxlint-effect";
|
|
244
315
|
}];
|
|
245
|
-
readonly rules:
|
|
316
|
+
readonly rules: {
|
|
317
|
+
readonly "linteffect/no-effect-fail-error-message": "error";
|
|
318
|
+
readonly "linteffect/no-catchall-generic-rethrow": "error";
|
|
319
|
+
readonly "linteffect/no-log-only-error-handling": "error";
|
|
320
|
+
readonly "linteffect/no-error-as-public-effect-error": "error";
|
|
321
|
+
readonly "linteffect/no-unknown-public-error-channel": "error";
|
|
322
|
+
readonly "linteffect/no-mixed-effect-error-shapes": "error";
|
|
323
|
+
readonly "linteffect/no-new-date-in-domain-logic": "error";
|
|
324
|
+
readonly "linteffect/no-raw-domain-id-alias": "error";
|
|
325
|
+
readonly "linteffect/no-boolean-domain-flag": "error";
|
|
326
|
+
readonly "linteffect/no-magic-domain-string": "error";
|
|
327
|
+
readonly "linteffect/no-raw-domain-primitive-params": "error";
|
|
328
|
+
readonly "linteffect/no-raw-time-domain-field": "error";
|
|
329
|
+
readonly "linteffect/no-overloaded-options-object": "error";
|
|
330
|
+
readonly "linteffect/no-domain-logic-in-conditional": "error";
|
|
331
|
+
readonly "linteffect/no-implicit-state-machine-object": "error";
|
|
332
|
+
readonly "linteffect/no-adhoc-domain-error": "error";
|
|
333
|
+
readonly "linteffect/no-domain-meaning-by-folder-only": "error";
|
|
334
|
+
};
|
|
246
335
|
};
|
|
247
336
|
readonly effectFlow: {
|
|
248
337
|
readonly jsPlugins: readonly [{
|
|
@@ -296,5 +385,5 @@ declare const presets: {
|
|
|
296
385
|
};
|
|
297
386
|
declare const _default: import("@oxlint/plugins").Plugin;
|
|
298
387
|
//#endregion
|
|
299
|
-
export { allRules, atomStateAndPlatformBoundaries, atomStateAndPlatformBoundariesRules, behaviorDecoration, behaviorDecorationRules, branchingAndLocalControlFlow, branchingAndLocalControlFlowRules, concurrencySafety, concurrencySafetyRules, ddd, _default as default, domainModeling, domainModelingRules, effectComposition, effectCompositionRules, effectFlow, effectFlowRules, jsPlugins, optionMatchAndDataNormalization, optionMatchAndDataNormalizationRules, pipelineShapeAndSequencing, pipelineShapeAndSequencingRules, platformAndBoundaryHygiene, platformAndBoundaryHygieneRules, presets, pureTransformation, pureTransformationRules, reactAndRuntimeBoundaries, reactAndRuntimeBoundariesRules, recommended, recommendedRules, resourceLifetime, resourceLifetimeRules, ruleGroups, serviceAndLayerArchitecture, serviceAndLayerArchitectureRules, styleSeparation, styleSeparationRules, testingObservabilityAndQa, testingObservabilityAndQaRules };
|
|
388
|
+
export { allRules, atomStateAndPlatformBoundaries, atomStateAndPlatformBoundariesRules, behaviorDecoration, behaviorDecorationRules, branchingAndLocalControlFlow, branchingAndLocalControlFlowRules, concurrencySafety, concurrencySafetyRules, ddd, dddRules, _default as default, domainModeling, domainModelingRules, effectComposition, effectCompositionRules, effectFlow, effectFlowRules, errorModeling, errorModelingRules, jsPlugins, optionMatchAndDataNormalization, optionMatchAndDataNormalizationRules, pipelineShapeAndSequencing, pipelineShapeAndSequencingRules, platformAndBoundaryHygiene, platformAndBoundaryHygieneRules, presets, pureTransformation, pureTransformationRules, reactAndRuntimeBoundaries, reactAndRuntimeBoundariesRules, recommended, recommendedRules, resourceLifetime, resourceLifetimeRules, ruleGroups, serviceAndLayerArchitecture, serviceAndLayerArchitectureRules, styleSeparation, styleSeparationRules, testingObservabilityAndQa, testingObservabilityAndQaRules };
|
|
300
389
|
//# sourceMappingURL=index.d.mts.map
|