@opsydyn/oxlint-effect 0.5.0 → 0.6.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 CHANGED
@@ -60,6 +60,8 @@ Named group presets:
60
60
  | `behaviorDecoration` | Behavior Decoration |
61
61
  | `styleSeparation` | Style Separation |
62
62
  | `serviceAndLayerArchitecture` | Service and Layer Architecture |
63
+ | `platformAndBoundaryHygiene` | Platform and Boundary Hygiene |
64
+ | `testingObservabilityAndQa` | Testing, Observability, and QA |
63
65
 
64
66
  Each preset also has a rule-only export with a `Rules` suffix. Use those when
65
67
  you want to compose multiple groups:
@@ -98,9 +100,10 @@ export default defineConfig({
98
100
 
99
101
  ## Rule Groups
100
102
 
101
- The recommended config enables every rule as an error. The rules are heuristic:
102
- they flag code shapes that tend to hide Effect flow, domain meaning, or runtime
103
- boundaries.
103
+ The recommended config enables the broadly applicable rules as errors. Strict
104
+ groups can add more opinionated checks where a team has adopted the associated
105
+ workflow. The rules are heuristic: they flag code shapes that tend to hide
106
+ Effect flow, domain meaning, or runtime boundaries.
104
107
 
105
108
  ### React and Runtime Boundaries
106
109
 
@@ -185,6 +188,86 @@ boundaries.
185
188
  | `linteffect/prefer-layer-mergeall-for-infrastructure` | Nested `Layer.merge(...)` chains. | Infrastructure groups should use `Layer.mergeAll(...)` so dependency groups stay visible. |
186
189
  | `linteffect/no-service-layer-scatter` | Three or more separate `*Layer`/`*Live` constants with inline `Layer.provide` or `Effect.provide`. | Service and infrastructure layers should be grouped by concern instead of scattered one constant at a time. |
187
190
 
191
+ ### Platform and Boundary Hygiene
192
+
193
+ | Rule | Catches | Why |
194
+ | --- | --- | --- |
195
+ | `linteffect/no-node-fs-in-effect-code` | `fs`, `node:fs`, `fs/promises`, and `node:fs/promises` imports and module-scope `require()` calls in Effect modules. | Effect code should stay portable and move Node filesystem access behind a platform boundary. |
196
+ | `linteffect/no-json-parse-without-schema` | `JSON.parse(...)` in Effect modules without an explicit Effect Schema import. | External JSON must be decoded through a schema at the boundary rather than trusted as an unvalidated value. |
197
+ | `linteffect/no-date-now-in-effect` | `Date.now()` within supported Effect construction boundaries. | Time should be supplied through Effect's Clock services so workflows remain deterministic and testable. |
198
+ | `linteffect/no-new-date-in-domain-logic` | `new Date(...)` in Effect-importing modules outside configured runtime boundaries. | Domain code should receive time through Clock or a modeled input rather than constructing a wall-clock value directly. |
199
+ | `linteffect/no-node-platform-in-shared-code` | Node built-in imports, including `node:*` and bare built-in module names, outside configured boundary paths. | Shared modules should remain portable and obtain platform capabilities through services or explicit application boundaries. |
200
+ | `linteffect/no-process-env-direct-read` | Direct and computed `process.env` reads outside configured boundary and configuration paths. | Environment values should be decoded once in a configuration service or Layer rather than read as ambient state. |
201
+ | `linteffect/no-hidden-effect-execution` | Direct `Effect.run*` calls in Effect modules outside configured boundary paths. | Reusable code should return Effects and leave runtime execution ownership at an application boundary. |
202
+ | `linteffect/no-boundary-try-catch-without-effect-map` | `try`/`catch` blocks in configured boundaries with no direct `Effect.try`, error mapping, recovery, or `Effect.run*` call. | Boundary failure handling should stay in Effect's typed error channel rather than becoming imperative control flow. |
203
+
204
+ ### Testing, Observability, and QA
205
+
206
+ | Rule | Catches | Why |
207
+ | --- | --- | --- |
208
+ | `linteffect/no-console-in-effect-flow` | `console.*` inside direct `Effect.gen`, `Effect.sync`, `Effect.try`, `Effect.tryPromise`, or `Effect.fn` callbacks, and `Effect.Service` implementations. | Logging through Effect preserves the runtime's observability context. |
209
+ | `linteffect/no-effect-log-without-structured-context` | String-only `Effect.logError` and `Effect.logWarning` calls in direct error-handler callbacks or `Effect.Service` implementations. | Failure logs need an error, structured fields, or local `Effect.annotateLogs(...)` context for correlation. |
210
+ | `linteffect/require-span-on-public-service-method` | Exported functions or function-valued variables with an explicit `Effect.Effect` return (on the function or variable declaration), plus `Effect.Service` methods directly returning an Effect, when any direct Effect return lacks `Effect.withSpan(...)`. | Public operations need visible trace boundaries. |
211
+ | `linteffect/no-runpromise-in-non-async-test-body` | Discarded direct `Effect.runPromise(...)` calls in `*.test.*`, `*.spec.*`, and `__tests__` files. | Tests must await or return runtime execution so the framework observes completion. |
212
+ | `linteffect/require-effect-flip-for-error-test` | Direct `await expect(Effect.runPromise(effect)).rejects...` assertions in conventional test files. | An expected typed Effect failure is clearer when `Effect.flip` yields the error as a value for structural assertions. |
213
+ | `linteffect/no-test-mock-layer-when-default-available` | A direct `Layer.succeed(...)` or `Layer.effect(...)` sibling of `SomeService.Default` in the same `Layer.provide(...)` call. | An explicit default composition and a sibling replacement layer can hide which service contract the test exercises. |
214
+
215
+ These rules are deliberately syntax-only. They require an Effect ecosystem import;
216
+ they do not resolve aliases, infer Effect return types, or follow values through
217
+ variables. `require-span-on-public-service-method` accepts either data-first
218
+ `Effect.withSpan(program, "operation")` or `.pipe(Effect.withSpan("operation"))`.
219
+
220
+ The three test-shape rules are strict opt-in checks: use
221
+ `testingObservabilityAndQa` when a repository follows this test style; they are
222
+ not in `recommended`. For an expected typed failure, the preferred pattern from
223
+ [EffectPatterns service-test guidance](https://github.com/PaulJPhilp/EffectPatterns/blob/main/docs/SERVICE_PATTERNS.md)
224
+ is to apply [`Effect.flip`](https://effect-ts.github.io/effect/effect/Effect.ts.html#flip),
225
+ execute the flipped Effect, and assert the returned error's `_tag`, message,
226
+ and structured fields. `Effect.flip` moves the expected typed failure into the
227
+ success channel, making the assertion explicit. This rule deliberately matches
228
+ only a direct `expect(Effect.runPromise(...)).rejects` shape; ordinary
229
+ JavaScript rejection assertions, aliases, helpers, and other promise chains are
230
+ out of scope.
231
+
232
+ Configure path-sensitive rules independently when a repository uses different
233
+ application and configuration boundaries:
234
+
235
+ ```ts
236
+ import { defineConfig } from "oxlint";
237
+ import { platformAndBoundaryHygiene } from "@opsydyn/oxlint-effect";
238
+
239
+ export default defineConfig({
240
+ plugins: ["typescript"],
241
+ jsPlugins: [...platformAndBoundaryHygiene.jsPlugins],
242
+ rules: {
243
+ ...platformAndBoundaryHygiene.rules,
244
+ "linteffect/no-node-platform-in-shared-code": [
245
+ "error",
246
+ { boundaryPaths: ["apps/**", "server/**"] },
247
+ ],
248
+ "linteffect/no-process-env-direct-read": [
249
+ "error",
250
+ {
251
+ boundaryPaths: ["apps/**", "server/**"],
252
+ configPaths: ["packages/config/**"],
253
+ },
254
+ ],
255
+ "linteffect/no-hidden-effect-execution": [
256
+ "error",
257
+ { boundaryPaths: ["apps/**", "server/**"] },
258
+ ],
259
+ "linteffect/no-new-date-in-domain-logic": [
260
+ "error",
261
+ { boundaryPaths: ["apps/**", "server/**"] },
262
+ ],
263
+ "linteffect/no-boundary-try-catch-without-effect-map": [
264
+ "error",
265
+ { boundaryPaths: ["apps/**", "server/**"] },
266
+ ],
267
+ },
268
+ });
269
+ ```
270
+
188
271
  ### Concurrency Safety
189
272
 
190
273
  | Rule | Catches | Why |
package/dist/index.d.mts CHANGED
@@ -10,13 +10,16 @@ declare const pipelineShapeAndSequencingRules: Record<"linteffect/warn-effect-sy
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">;
12
12
  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">;
13
- declare const domainModelingRules: Record<"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">;
13
+ 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">;
14
14
  declare const effectFlowRules: Record<"linteffect/no-piped-yield-in-gen" | "linteffect/no-gen-for-mapping" | "linteffect/prefer-gen-for-workflow", "error">;
15
15
  declare const pureTransformationRules: Record<"linteffect/no-large-anonymous-flow" | "linteffect/no-effect-in-flow" | "linteffect/prefer-named-flow", "error">;
16
16
  declare const behaviorDecorationRules: Record<"linteffect/prefer-pipe-for-behavior" | "linteffect/prefer-decorated-effect-before-gen" | "linteffect/no-workflow-in-behavior-pipe", "error">;
17
17
  declare const styleSeparationRules: Record<"linteffect/no-mixed-pillar-function" | "linteffect/no-clever-effect-expression" | "linteffect/prefer-extracted-concept", "error">;
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
- 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-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-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-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">;
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
+ 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">;
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">;
20
23
  declare const ruleGroups: {
21
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">;
22
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">;
@@ -25,20 +28,22 @@ declare const ruleGroups: {
25
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">;
26
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">;
27
30
  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">;
28
- readonly domainModeling: Record<"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">;
31
+ 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">;
29
32
  readonly effectFlow: Record<"linteffect/no-piped-yield-in-gen" | "linteffect/no-gen-for-mapping" | "linteffect/prefer-gen-for-workflow", "error">;
30
33
  readonly pureTransformation: Record<"linteffect/no-large-anonymous-flow" | "linteffect/no-effect-in-flow" | "linteffect/prefer-named-flow", "error">;
31
34
  readonly behaviorDecoration: Record<"linteffect/prefer-pipe-for-behavior" | "linteffect/prefer-decorated-effect-before-gen" | "linteffect/no-workflow-in-behavior-pipe", "error">;
32
35
  readonly styleSeparation: Record<"linteffect/no-mixed-pillar-function" | "linteffect/no-clever-effect-expression" | "linteffect/prefer-extracted-concept", "error">;
33
36
  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">;
34
- readonly ddd: Record<"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">;
37
+ 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">;
38
+ 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">;
39
+ 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">;
35
40
  };
36
41
  declare const recommended: {
37
42
  readonly jsPlugins: readonly [{
38
43
  readonly name: "linteffect";
39
44
  readonly specifier: "@opsydyn/oxlint-effect";
40
45
  }];
41
- 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-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-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-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">;
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">;
42
47
  };
43
48
  declare const reactAndRuntimeBoundaries: {
44
49
  readonly jsPlugins: readonly [{
@@ -94,14 +99,14 @@ declare const domainModeling: {
94
99
  readonly name: "linteffect";
95
100
  readonly specifier: "@opsydyn/oxlint-effect";
96
101
  }];
97
- readonly rules: Record<"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">;
102
+ 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">;
98
103
  };
99
104
  declare const ddd: {
100
105
  readonly jsPlugins: readonly [{
101
106
  readonly name: "linteffect";
102
107
  readonly specifier: "@opsydyn/oxlint-effect";
103
108
  }];
104
- readonly rules: Record<"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">;
109
+ 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">;
105
110
  };
106
111
  declare const effectFlow: {
107
112
  readonly jsPlugins: readonly [{
@@ -138,13 +143,27 @@ declare const serviceAndLayerArchitecture: {
138
143
  }];
139
144
  readonly rules: 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">;
140
145
  };
146
+ declare const platformAndBoundaryHygiene: {
147
+ readonly jsPlugins: readonly [{
148
+ readonly name: "linteffect";
149
+ readonly specifier: "@opsydyn/oxlint-effect";
150
+ }];
151
+ readonly rules: 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">;
152
+ };
153
+ declare const testingObservabilityAndQa: {
154
+ readonly jsPlugins: readonly [{
155
+ readonly name: "linteffect";
156
+ readonly specifier: "@opsydyn/oxlint-effect";
157
+ }];
158
+ readonly rules: 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">;
159
+ };
141
160
  declare const presets: {
142
161
  readonly recommended: {
143
162
  readonly jsPlugins: readonly [{
144
163
  readonly name: "linteffect";
145
164
  readonly specifier: "@opsydyn/oxlint-effect";
146
165
  }];
147
- 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-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-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-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">;
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">;
148
167
  };
149
168
  readonly reactAndRuntimeBoundaries: {
150
169
  readonly jsPlugins: readonly [{
@@ -200,14 +219,14 @@ declare const presets: {
200
219
  readonly name: "linteffect";
201
220
  readonly specifier: "@opsydyn/oxlint-effect";
202
221
  }];
203
- readonly rules: Record<"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">;
222
+ 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">;
204
223
  };
205
224
  readonly ddd: {
206
225
  readonly jsPlugins: readonly [{
207
226
  readonly name: "linteffect";
208
227
  readonly specifier: "@opsydyn/oxlint-effect";
209
228
  }];
210
- readonly rules: Record<"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">;
229
+ 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">;
211
230
  };
212
231
  readonly effectFlow: {
213
232
  readonly jsPlugins: readonly [{
@@ -244,8 +263,22 @@ declare const presets: {
244
263
  }];
245
264
  readonly rules: 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">;
246
265
  };
266
+ readonly platformAndBoundaryHygiene: {
267
+ readonly jsPlugins: readonly [{
268
+ readonly name: "linteffect";
269
+ readonly specifier: "@opsydyn/oxlint-effect";
270
+ }];
271
+ readonly rules: 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">;
272
+ };
273
+ readonly testingObservabilityAndQa: {
274
+ readonly jsPlugins: readonly [{
275
+ readonly name: "linteffect";
276
+ readonly specifier: "@opsydyn/oxlint-effect";
277
+ }];
278
+ readonly rules: 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">;
279
+ };
247
280
  };
248
281
  declare const _default: import("@oxlint/plugins").Plugin;
249
282
  //#endregion
250
- 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, presets, pureTransformation, pureTransformationRules, reactAndRuntimeBoundaries, reactAndRuntimeBoundariesRules, recommended, ruleGroups, serviceAndLayerArchitecture, serviceAndLayerArchitectureRules, styleSeparation, styleSeparationRules };
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 };
251
284
  //# sourceMappingURL=index.d.mts.map