@opsydyn/oxlint-effect 0.6.0 → 0.7.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 +3 -0
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -285,6 +285,9 @@ export default defineConfig({
|
|
|
285
285
|
| `linteffect/no-uninterruptible-concurrent-region` | `Effect.uninterruptible(...)` wrapping `fork`, `race`, `all`, `forEach`, or queue-taking work. | Broad uninterruptible concurrent regions block cancellation and can strand work during shutdown. |
|
|
286
286
|
| `linteffect/no-unbounded-queue-or-pubsub` | `Queue.unbounded()` and `PubSub.unbounded()`. | Unbounded buffers hide backpressure and can fail under load; capacity should be owned explicitly. |
|
|
287
287
|
| `linteffect/no-global-mutable-concurrency-state` | Module-level mutable state or mutable containers touched from concurrent Effect work. | Global mutable state under concurrency behaves like shared memory; move ownership into Effect primitives or layers. |
|
|
288
|
+
| `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
|
+
| `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
|
+
| `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. |
|
|
288
291
|
|
|
289
292
|
### Pipeline Shape and Sequencing
|
|
290
293
|
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ 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", "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">;
|
|
9
9
|
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
10
|
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
11
|
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 +18,12 @@ declare const styleSeparationRules: Record<"linteffect/no-mixed-pillar-function"
|
|
|
18
18
|
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
19
|
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
20
|
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", "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
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">;
|
|
23
23
|
declare const ruleGroups: {
|
|
24
24
|
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
25
|
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", "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
27
|
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
28
|
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
29
|
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">;
|
|
@@ -64,7 +64,7 @@ declare const concurrencySafety: {
|
|
|
64
64
|
readonly name: "linteffect";
|
|
65
65
|
readonly specifier: "@opsydyn/oxlint-effect";
|
|
66
66
|
}];
|
|
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", "error">;
|
|
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">;
|
|
68
68
|
};
|
|
69
69
|
declare const pipelineShapeAndSequencing: {
|
|
70
70
|
readonly jsPlugins: readonly [{
|
|
@@ -184,7 +184,7 @@ declare const presets: {
|
|
|
184
184
|
readonly name: "linteffect";
|
|
185
185
|
readonly specifier: "@opsydyn/oxlint-effect";
|
|
186
186
|
}];
|
|
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", "error">;
|
|
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">;
|
|
188
188
|
};
|
|
189
189
|
readonly pipelineShapeAndSequencing: {
|
|
190
190
|
readonly jsPlugins: readonly [{
|