@opsydyn/oxlint-effect 0.7.0 → 0.8.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 +16 -0
- package/dist/index.d.mts +25 -9
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -49,6 +49,7 @@ Named group presets:
|
|
|
49
49
|
| `reactAndRuntimeBoundaries` | React and Runtime Boundaries |
|
|
50
50
|
| `effectComposition` | Effect Composition |
|
|
51
51
|
| `concurrencySafety` | Concurrency Safety |
|
|
52
|
+
| `resourceLifetime` | Resource Lifetime |
|
|
52
53
|
| `pipelineShapeAndSequencing` | Pipeline Shape and Sequencing |
|
|
53
54
|
| `branchingAndLocalControlFlow` | Branching and Local Control Flow |
|
|
54
55
|
| `optionMatchAndDataNormalization` | Option, Match, and Data Normalization |
|
|
@@ -288,6 +289,21 @@ export default defineConfig({
|
|
|
288
289
|
| `linteffect/no-yield-with-held-semaphore-permit` | Direct semaphore `withPermit` / `withPermits` work whose effect contains sleep, await, Promise interop, queue waiting, or concurrent Effect work. | Strict-only protection against holding a permit while interruptible or concurrent work occupies the critical section. |
|
|
289
290
|
| `linteffect/no-yield-with-held-mutable-ref` | Effectful `SynchronizedRef` modifiers (`modifyEffect`, `modifySomeEffect`, `updateEffect`, `updateAndGetEffect`) whose callback suspends or starts concurrent work. | Strict-only protection that keeps internal reference coordination short and synchronous. |
|
|
290
291
|
| `linteffect/no-unscoped-background-fiber` | Direct `Effect.forkDaemon(...)` without a direct `Effect.supervised(...)` child-effect marker. | Strict-only protection that requires daemon work to expose supervision or use scoped ownership instead of silently outliving the caller. |
|
|
292
|
+
| `linteffect/no-manual-deferred-coordination` | A local `Deferred.make(...)` / `Deferred.unsafeMake(...)` latch whose matching `Deferred.await(...)` has no timeout, race, interruption, scope, or finalizer protection. | Strict-only protection against unbounded waits and implicit completion ownership in ad hoc coordination. |
|
|
293
|
+
| `linteffect/no-acquire-without-scoped-release` | Resource-like `open` / `connect` / `create` / `start` / `listen` / `subscribe` / `acquire` calls for client, connection, pool, database, file, socket, stream, server, subscription, or handle values inside concurrent Effect work without scoped release evidence. | Keeps resources acquired by concurrent work tied to `acquireRelease`, `acquireUseRelease`, `Effect.scoped`, or a matching finalizer. |
|
|
294
|
+
|
|
295
|
+
### Resource Lifetime
|
|
296
|
+
|
|
297
|
+
These rules use a central syntax-only resource vocabulary (`client`, `connection`,
|
|
298
|
+
`conn`, `pool`, `db`, `database`, `file`, `socket`, `stream`, `server`,
|
|
299
|
+
`subscription`, and `handle`). They require an Effect ecosystem import and
|
|
300
|
+
support the same `boundaryPaths` option as the other lifecycle rules.
|
|
301
|
+
|
|
302
|
+
| Rule | Catches | Why |
|
|
303
|
+
| --- | --- | --- |
|
|
304
|
+
| `linteffect/no-manual-resource-close` | Resource-like `.close()`, `.destroy()`, `.dispose()`, or `.cleanup()` calls outside release or finalizer callbacks. | Keeps cleanup owned by Effect scopes instead of ad hoc imperative code. |
|
|
305
|
+
| `linteffect/no-unbound-scope` | `Scope.make()` without `Effect.scoped`, `Layer.scoped`, explicit `Scope.close`, or a matching acquire/release callback. | Prevents scopes and their finalizers from being leaked. |
|
|
306
|
+
| `linteffect/no-resource-succeed-escape` | `Effect.succeed(resourceLike)` for client, connection, pool, file, socket, stream, server, subscription, or handle-shaped values. | Keeps live resource lifetimes inside scoped Effect ownership; this heuristic is focused-only rather than recommended. |
|
|
291
307
|
|
|
292
308
|
### Pipeline Shape and Sequencing
|
|
293
309
|
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,8 @@ declare const jsPlugins: readonly [{
|
|
|
5
5
|
}];
|
|
6
6
|
declare const reactAndRuntimeBoundariesRules: 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">;
|
|
7
7
|
declare const effectCompositionRules: 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">;
|
|
8
|
-
declare const concurrencySafetyRules: Record<"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-yield-with-held-semaphore-permit" | "linteffect/no-yield-with-held-mutable-ref" | "linteffect/no-unscoped-background-fiber", "error">;
|
|
8
|
+
declare const concurrencySafetyRules: Record<"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-yield-with-held-semaphore-permit" | "linteffect/no-yield-with-held-mutable-ref" | "linteffect/no-unscoped-background-fiber", "error">;
|
|
9
|
+
declare const resourceLifetimeRules: Record<"linteffect/no-manual-resource-close" | "linteffect/no-unbound-scope" | "linteffect/no-resource-succeed-escape", "error">;
|
|
9
10
|
declare const pipelineShapeAndSequencingRules: Record<"linteffect/warn-effect-sync-wrapper" | "linteffect/no-effect-side-effect-wrapper" | "linteffect/no-effect-all-step-sequencing" | "linteffect/no-effect-wrapper-alias" | "linteffect/no-effect-succeed-variable" | "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", "error">;
|
|
10
11
|
declare const branchingAndLocalControlFlowRules: Record<"linteffect/no-if-statement" | "linteffect/no-switch-statement" | "linteffect/no-ternary" | "linteffect/no-return-null" | "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-try-catch", "error">;
|
|
11
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">;
|
|
@@ -18,12 +19,13 @@ declare const styleSeparationRules: Record<"linteffect/no-mixed-pillar-function"
|
|
|
18
19
|
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">;
|
|
19
20
|
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">;
|
|
20
21
|
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">;
|
|
21
|
-
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-yield-with-held-semaphore-permit" | "linteffect/no-yield-with-held-mutable-ref" | "linteffect/no-unscoped-background-fiber", "error">;
|
|
22
|
-
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", "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">;
|
|
23
24
|
declare const ruleGroups: {
|
|
24
25
|
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">;
|
|
25
26
|
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">;
|
|
26
|
-
readonly concurrencySafety: Record<"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-yield-with-held-semaphore-permit" | "linteffect/no-yield-with-held-mutable-ref" | "linteffect/no-unscoped-background-fiber", "error">;
|
|
27
|
+
readonly concurrencySafety: Record<"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-yield-with-held-semaphore-permit" | "linteffect/no-yield-with-held-mutable-ref" | "linteffect/no-unscoped-background-fiber", "error">;
|
|
28
|
+
readonly resourceLifetime: Record<"linteffect/no-manual-resource-close" | "linteffect/no-unbound-scope" | "linteffect/no-resource-succeed-escape", "error">;
|
|
27
29
|
readonly pipelineShapeAndSequencing: Record<"linteffect/warn-effect-sync-wrapper" | "linteffect/no-effect-side-effect-wrapper" | "linteffect/no-effect-all-step-sequencing" | "linteffect/no-effect-wrapper-alias" | "linteffect/no-effect-succeed-variable" | "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", "error">;
|
|
28
30
|
readonly branchingAndLocalControlFlow: Record<"linteffect/no-if-statement" | "linteffect/no-switch-statement" | "linteffect/no-ternary" | "linteffect/no-return-null" | "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-try-catch", "error">;
|
|
29
31
|
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">;
|
|
@@ -43,7 +45,7 @@ declare const recommended: {
|
|
|
43
45
|
readonly name: "linteffect";
|
|
44
46
|
readonly specifier: "@opsydyn/oxlint-effect";
|
|
45
47
|
}];
|
|
46
|
-
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", "error">;
|
|
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">;
|
|
47
49
|
};
|
|
48
50
|
declare const reactAndRuntimeBoundaries: {
|
|
49
51
|
readonly jsPlugins: readonly [{
|
|
@@ -64,7 +66,14 @@ declare const concurrencySafety: {
|
|
|
64
66
|
readonly name: "linteffect";
|
|
65
67
|
readonly specifier: "@opsydyn/oxlint-effect";
|
|
66
68
|
}];
|
|
67
|
-
readonly rules: Record<"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-yield-with-held-semaphore-permit" | "linteffect/no-yield-with-held-mutable-ref" | "linteffect/no-unscoped-background-fiber", "error">;
|
|
69
|
+
readonly rules: Record<"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-yield-with-held-semaphore-permit" | "linteffect/no-yield-with-held-mutable-ref" | "linteffect/no-unscoped-background-fiber", "error">;
|
|
70
|
+
};
|
|
71
|
+
declare const resourceLifetime: {
|
|
72
|
+
readonly jsPlugins: readonly [{
|
|
73
|
+
readonly name: "linteffect";
|
|
74
|
+
readonly specifier: "@opsydyn/oxlint-effect";
|
|
75
|
+
}];
|
|
76
|
+
readonly rules: Record<"linteffect/no-manual-resource-close" | "linteffect/no-unbound-scope" | "linteffect/no-resource-succeed-escape", "error">;
|
|
68
77
|
};
|
|
69
78
|
declare const pipelineShapeAndSequencing: {
|
|
70
79
|
readonly jsPlugins: readonly [{
|
|
@@ -163,7 +172,7 @@ declare const presets: {
|
|
|
163
172
|
readonly name: "linteffect";
|
|
164
173
|
readonly specifier: "@opsydyn/oxlint-effect";
|
|
165
174
|
}];
|
|
166
|
-
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", "error">;
|
|
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">;
|
|
167
176
|
};
|
|
168
177
|
readonly reactAndRuntimeBoundaries: {
|
|
169
178
|
readonly jsPlugins: readonly [{
|
|
@@ -184,7 +193,14 @@ declare const presets: {
|
|
|
184
193
|
readonly name: "linteffect";
|
|
185
194
|
readonly specifier: "@opsydyn/oxlint-effect";
|
|
186
195
|
}];
|
|
187
|
-
readonly rules: Record<"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-yield-with-held-semaphore-permit" | "linteffect/no-yield-with-held-mutable-ref" | "linteffect/no-unscoped-background-fiber", "error">;
|
|
196
|
+
readonly rules: Record<"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-yield-with-held-semaphore-permit" | "linteffect/no-yield-with-held-mutable-ref" | "linteffect/no-unscoped-background-fiber", "error">;
|
|
197
|
+
};
|
|
198
|
+
readonly resourceLifetime: {
|
|
199
|
+
readonly jsPlugins: readonly [{
|
|
200
|
+
readonly name: "linteffect";
|
|
201
|
+
readonly specifier: "@opsydyn/oxlint-effect";
|
|
202
|
+
}];
|
|
203
|
+
readonly rules: Record<"linteffect/no-manual-resource-close" | "linteffect/no-unbound-scope" | "linteffect/no-resource-succeed-escape", "error">;
|
|
188
204
|
};
|
|
189
205
|
readonly pipelineShapeAndSequencing: {
|
|
190
206
|
readonly jsPlugins: readonly [{
|
|
@@ -280,5 +296,5 @@ declare const presets: {
|
|
|
280
296
|
};
|
|
281
297
|
declare const _default: import("@oxlint/plugins").Plugin;
|
|
282
298
|
//#endregion
|
|
283
|
-
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, ruleGroups, serviceAndLayerArchitecture, serviceAndLayerArchitectureRules, styleSeparation, styleSeparationRules, testingObservabilityAndQa, testingObservabilityAndQaRules };
|
|
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 };
|
|
284
300
|
//# sourceMappingURL=index.d.mts.map
|