@effect/tsgo 0.69.0 → 0.70.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
@@ -5,13 +5,13 @@ A wrapper for both [TSRS](https://github.com/oxc-project/tsrs) and [TypeScript-G
5
5
  <!-- supported-components:start -->
6
6
  ## Supported Package Versions
7
7
 
8
- The following target package versions are supported by `@effect/tsgo@0.69.0`:
8
+ The following target package versions are supported by `@effect/tsgo@0.70.0`:
9
9
 
10
10
  | Component | Supported versions |
11
11
  |---|---|
12
- | TypeScript | `7.0.2`, `7.1.0-beta`, `7.1.0-dev.20261112.1` |
12
+ | TypeScript | `7.0.2`, `7.1.0-beta`, `7.1.0-dev.20261116.1` |
13
13
  | tsrs | `0.25.0-ts7.1.0-beta` |
14
- | Oxlint | `1.91.0`, `1.92.0`, `1.93.0` |
14
+ | Oxlint | `1.91.0`, `1.92.0`, `1.93.0`, `1.94.0` |
15
15
  | oxlint-tsgolint | `7.0.2005`, `7.0.2006`, `7.0.2007` |
16
16
  <!-- supported-components:end -->
17
17
 
@@ -185,8 +185,10 @@ Some diagnostics are off by default or have a default severity of suggestion, bu
185
185
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/flat-map-conditional-to-filter-or-fail.md"><code>flatMapConditionalToFilterOrFail</code></a></td><td>Suggests Effect.filterOrFail or Effect.filterOrElse when Effect.flatMap conditionally passes its input through with Effect.succeed</td></tr>
186
186
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/flat-map-identity-to-flatten.md"><code>flatMapIdentityToFlatten</code></a></td><td>Suggests Effect.flatten instead of Effect.flatMap when the callback is Effect&#39;s identity export referenced directly or an unannotated function returning its parameter</td></tr>
187
187
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/flat-map-ignored-param-to-and-then.md"><code>flatMapIgnoredParamToAndThen</code></a></td><td>Suggests using Effect.andThen instead of Effect.flatMap when a zero-parameter callback returns an existing Effect value</td></tr>
188
+ <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/flat-map-provide-service-to-provide-service-effect.md"><code>flatMapProvideServiceToProvideServiceEffect</code></a></td><td>Suggests Effect.provideServiceEffect when a flatMap or andThen callback only forwards its parameter to Effect.provideService</td></tr>
188
189
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/flat-map-to-map.md"><code>flatMapToMap</code></a></td><td>Suggests using Effect.map instead of Effect.flatMap when the callback only wraps its result with Effect.succeed</td></tr>
189
190
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/flat-map-to-tap.md"><code>flatMapToTap</code></a></td><td>Suggests Effect.tap when a flatMap or andThen callback runs an effect and returns its unchanged parameter</td></tr>
191
+ <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/for-loop-push-to-for-each.md"><code>forLoopPushToForEach</code></a></td><td>Suggests Effect.forEach instead of a for-of loop that pushes yielded Effect results into an accumulator</td></tr>
190
192
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/manual-metric-tap-to-track.md"><code>manualMetricTapToTrack</code></a></td><td>Suggests Effect.trackSuccesses/trackErrors/trackDefects when an Effect.tap/tapError/tapDefect only updates a metric</td></tr>
191
193
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/map-const-to-as.md"><code>mapConstToAs</code></a></td><td>Suggests using Effect.as instead of Effect.map when the callback ignores its input and returns a constant</td></tr>
192
194
  <tr><td><a href="https://github.com/Effect-TS/tsgo/blob/main/docs/rules/map-map-error-to-map-both.md"><code>mapMapErrorToMapBoth</code></a></td><td>Suggests Effect.mapBoth when Effect.map and Effect.mapError are adjacent steps of a piping flow</td></tr>
@@ -57911,7 +57911,7 @@ const runWith = (command, config) => {
57911
57911
  //#endregion
57912
57912
  //#region package.json
57913
57913
  var name = "@effect/tsgo";
57914
- var version = "0.69.0";
57914
+ var version = "0.70.0";
57915
57915
 
57916
57916
  //#endregion
57917
57917
  //#region src/metadata.json
@@ -57980,6 +57980,7 @@ var presets$1 = [
57980
57980
  "flatMapConditionalToFilterOrFail": "suggestion",
57981
57981
  "flatMapIdentityToFlatten": "suggestion",
57982
57982
  "flatMapIgnoredParamToAndThen": "suggestion",
57983
+ "flatMapProvideServiceToProvideServiceEffect": "suggestion",
57983
57984
  "flatMapToMap": "suggestion",
57984
57985
  "flatMapToTap": "suggestion",
57985
57986
  "floatingEffect": "error",
@@ -58084,6 +58085,7 @@ var presets$1 = [
58084
58085
  "flatMapConditionalToFilterOrFail": "error",
58085
58086
  "flatMapIdentityToFlatten": "error",
58086
58087
  "flatMapIgnoredParamToAndThen": "error",
58088
+ "flatMapProvideServiceToProvideServiceEffect": "error",
58087
58089
  "flatMapToMap": "error",
58088
58090
  "flatMapToTap": "error",
58089
58091
  "floatingEffect": "error",
@@ -58270,8 +58272,10 @@ var presets$1 = [
58270
58272
  "flatMapConditionalToFilterOrFail": "warning",
58271
58273
  "flatMapIdentityToFlatten": "warning",
58272
58274
  "flatMapIgnoredParamToAndThen": "warning",
58275
+ "flatMapProvideServiceToProvideServiceEffect": "warning",
58273
58276
  "flatMapToMap": "warning",
58274
58277
  "flatMapToTap": "warning",
58278
+ "forLoopPushToForEach": "warning",
58275
58279
  "manualMetricTapToTrack": "warning",
58276
58280
  "mapConstToAs": "warning",
58277
58281
  "mapMapErrorToMapBoth": "warning",
@@ -60021,6 +60025,23 @@ var rules = [
60021
60025
  }]
60022
60026
  }
60023
60027
  },
60028
+ {
60029
+ "name": "flatMapProvideServiceToProvideServiceEffect",
60030
+ "group": "style",
60031
+ "description": "Suggests Effect.provideServiceEffect when a flatMap or andThen callback only forwards its parameter to Effect.provideService",
60032
+ "defaultSeverity": "suggestion",
60033
+ "fixable": true,
60034
+ "supportedEffect": ["v3", "v4"],
60035
+ "codes": [377194],
60036
+ "preview": {
60037
+ "sourceText": "import { Context, Effect } from \"effect\"\n\n// The quick fix rewrites this to Effect.provideServiceEffect(program, Database, makeConnection).\n// Notes:\n// - After the fix, `program` is evaluated once when the expression is built, not on every run of the callback.\n// - The Effect.gen form (`const conn = yield* makeConnection; return yield* Effect.provideService(program, Database, conn)`)\n// is deliberately not reported.\n// - On Effect v3, data-first `Effect.andThen(acquire, callback)` is not reported, since its overloads do not form a dual.\n\ninterface DatabaseConnection {\n readonly query: (sql: string) => Effect.Effect<string>\n}\n\nconst Database = Context.Service<DatabaseConnection>(\"Database\")\n\ndeclare const makeConnection: Effect.Effect<DatabaseConnection>\n\nconst program = Effect.gen(function*() {\n const db = yield* Effect.service(Database)\n return yield* db.query(\"SELECT * FROM users\")\n})\n\nexport const runWithDatabase = makeConnection.pipe(\n Effect.flatMap((conn) => Effect.provideService(program, Database, conn))\n)\n",
60038
+ "diagnostics": [{
60039
+ "start": 961,
60040
+ "end": 975,
60041
+ "text": "`Effect.provideServiceEffect` provides this service from the acquiring effect directly instead of `Effect.flatMap` forwarding its parameter to `Effect.provideService`. effect(flatMapProvideServiceToProvideServiceEffect)"
60042
+ }]
60043
+ }
60044
+ },
60024
60045
  {
60025
60046
  "name": "flatMapToMap",
60026
60047
  "group": "style",
@@ -60055,6 +60076,23 @@ var rules = [
60055
60076
  }]
60056
60077
  }
60057
60078
  },
60079
+ {
60080
+ "name": "forLoopPushToForEach",
60081
+ "group": "style",
60082
+ "description": "Suggests Effect.forEach instead of a for-of loop that pushes yielded Effect results into an accumulator",
60083
+ "defaultSeverity": "off",
60084
+ "fixable": true,
60085
+ "supportedEffect": ["v3", "v4"],
60086
+ "codes": [377170],
60087
+ "preview": {
60088
+ "sourceText": "import { Effect } from \"effect\"\n\ndeclare const items: ReadonlyArray<number>\ndeclare const processItem: (item: number) => Effect.Effect<string>\n\nexport const program = Effect.gen(function*() {\n const results = []\n for (const item of items) {\n results.push(yield* processItem(item))\n }\n return results\n})\n",
60089
+ "diagnostics": [{
60090
+ "start": 215,
60091
+ "end": 289,
60092
+ "text": "`Effect.forEach` expresses this for-of loop that pushes yielded results into an accumulator more directly, and makes ordering and concurrency explicit. effect(forLoopPushToForEach)"
60093
+ }]
60094
+ }
60095
+ },
60058
60096
  {
60059
60097
  "name": "manualMetricTapToTrack",
60060
60098
  "group": "style",
@@ -60929,9 +60967,9 @@ var tags = {
60929
60967
  "typescript": {
60930
60968
  "latest": "7.0.2",
60931
60969
  "beta": "7.1.0-beta",
60932
- "next": "7.1.0-dev.20261112.1"
60970
+ "next": "7.1.0-dev.20261116.1"
60933
60971
  },
60934
- "oxlint": { "latest": "1.93.0" },
60972
+ "oxlint": { "latest": "1.94.0" },
60935
60973
  "oxlint-tsgolint": { "latest": "7.0.2007" },
60936
60974
  "tsrs": { "latest": "0.25.0-ts7.1.0-beta" }
60937
60975
  };
@@ -60945,8 +60983,8 @@ var components = {
60945
60983
  "gitHead": "3e9236361fa97a9e6c685f4833ac457ae2d8c50a",
60946
60984
  "provider": "typescript"
60947
60985
  },
60948
- "7.1.0-dev.20261112.1": {
60949
- "gitHead": "ad24728023c52ef6a92a278046cdb69621048365",
60986
+ "7.1.0-dev.20261116.1": {
60987
+ "gitHead": "6bdcb54d23f41bc7098c1f3488ac599c75b852ca",
60950
60988
  "provider": "typescript"
60951
60989
  }
60952
60990
  },
@@ -60967,7 +61005,8 @@ var components = {
60967
61005
  "oxlint": {
60968
61006
  "1.91.0": { "gitHead": "f3fcdcc61b08e9880476279ba21a363967940fa4" },
60969
61007
  "1.92.0": { "gitHead": "29daf901a1ea6b0a7a56c2b9d488bd2850d0abd4" },
60970
- "1.93.0": { "gitHead": "7d8e1f4953a694e9705117f674933925142ed457" }
61008
+ "1.93.0": { "gitHead": "7d8e1f4953a694e9705117f674933925142ed457" },
61009
+ "1.94.0": { "gitHead": "229b69bf10a9c876f84287123fdf9d5e0747c96b" }
60971
61010
  },
60972
61011
  "tsrs": { "0.25.0-ts7.1.0-beta": {
60973
61012
  "gitHead": "0f82b670e4ff861840b1315f8610816229e73e3a",
@@ -159,6 +159,7 @@ export const recommended = {
159
159
  "effecttsgo/flat-map-conditional-to-filter-or-fail": "warn",
160
160
  "effecttsgo/flat-map-identity-to-flatten": "warn",
161
161
  "effecttsgo/flat-map-ignored-param-to-and-then": "warn",
162
+ "effecttsgo/flat-map-provide-service-to-provide-service-effect": "warn",
162
163
  "effecttsgo/flat-map-to-map": "warn",
163
164
  "effecttsgo/flat-map-to-tap": "warn",
164
165
  "effecttsgo/floating-effect": "error",
@@ -268,6 +269,7 @@ export const strict = {
268
269
  "effecttsgo/flat-map-conditional-to-filter-or-fail": "error",
269
270
  "effecttsgo/flat-map-identity-to-flatten": "error",
270
271
  "effecttsgo/flat-map-ignored-param-to-and-then": "error",
272
+ "effecttsgo/flat-map-provide-service-to-provide-service-effect": "error",
271
273
  "effecttsgo/flat-map-to-map": "error",
272
274
  "effecttsgo/flat-map-to-tap": "error",
273
275
  "effecttsgo/floating-effect": "error",
@@ -368,8 +370,10 @@ export const style = {
368
370
  "effecttsgo/flat-map-conditional-to-filter-or-fail": "warn",
369
371
  "effecttsgo/flat-map-identity-to-flatten": "warn",
370
372
  "effecttsgo/flat-map-ignored-param-to-and-then": "warn",
373
+ "effecttsgo/flat-map-provide-service-to-provide-service-effect": "warn",
371
374
  "effecttsgo/flat-map-to-map": "warn",
372
375
  "effecttsgo/flat-map-to-tap": "warn",
376
+ "effecttsgo/for-loop-push-to-for-each": "warn",
373
377
  "effecttsgo/manual-metric-tap-to-track": "warn",
374
378
  "effecttsgo/map-const-to-as": "warn",
375
379
  "effecttsgo/map-map-error-to-map-both": "warn",
@@ -39,6 +39,7 @@
39
39
  "effecttsgo/flat-map-conditional-to-filter-or-fail": "warn",
40
40
  "effecttsgo/flat-map-identity-to-flatten": "warn",
41
41
  "effecttsgo/flat-map-ignored-param-to-and-then": "warn",
42
+ "effecttsgo/flat-map-provide-service-to-provide-service-effect": "warn",
42
43
  "effecttsgo/flat-map-to-map": "warn",
43
44
  "effecttsgo/flat-map-to-tap": "warn",
44
45
  "effecttsgo/floating-effect": "error",
@@ -39,6 +39,7 @@
39
39
  "effecttsgo/flat-map-conditional-to-filter-or-fail": "error",
40
40
  "effecttsgo/flat-map-identity-to-flatten": "error",
41
41
  "effecttsgo/flat-map-ignored-param-to-and-then": "error",
42
+ "effecttsgo/flat-map-provide-service-to-provide-service-effect": "error",
42
43
  "effecttsgo/flat-map-to-map": "error",
43
44
  "effecttsgo/flat-map-to-tap": "error",
44
45
  "effecttsgo/floating-effect": "error",
@@ -30,8 +30,10 @@
30
30
  "effecttsgo/flat-map-conditional-to-filter-or-fail": "warn",
31
31
  "effecttsgo/flat-map-identity-to-flatten": "warn",
32
32
  "effecttsgo/flat-map-ignored-param-to-and-then": "warn",
33
+ "effecttsgo/flat-map-provide-service-to-provide-service-effect": "warn",
33
34
  "effecttsgo/flat-map-to-map": "warn",
34
35
  "effecttsgo/flat-map-to-tap": "warn",
36
+ "effecttsgo/for-loop-push-to-for-each": "warn",
35
37
  "effecttsgo/manual-metric-tap-to-track": "warn",
36
38
  "effecttsgo/map-const-to-as": "warn",
37
39
  "effecttsgo/map-map-error-to-map-both": "warn",
@@ -1209,6 +1209,40 @@
1209
1209
  },
1210
1210
  "type": "object"
1211
1211
  },
1212
+ "ChecksConditionals": {
1213
+ "anyOf": [
1214
+ {
1215
+ "type": "boolean"
1216
+ },
1217
+ {
1218
+ "$ref": "#/definitions/ChecksConditionalsOptions"
1219
+ }
1220
+ ]
1221
+ },
1222
+ "ChecksConditionalsFlagUnions": {
1223
+ "enum": [
1224
+ "none",
1225
+ "strict",
1226
+ "all"
1227
+ ],
1228
+ "type": "string"
1229
+ },
1230
+ "ChecksConditionalsOptions": {
1231
+ "additionalProperties": false,
1232
+ "properties": {
1233
+ "flagUnions": {
1234
+ "allOf": [
1235
+ {
1236
+ "$ref": "#/definitions/ChecksConditionalsFlagUnions"
1237
+ }
1238
+ ],
1239
+ "default": "none",
1240
+ "description": "Controls which union types are reported in conditionals.\n- `\"none\"` only reports values that are always Promise-like.\n- `\"strict\"` also reports unions where the non-Promise types match the awaited Promise types,\nsuch as `Promise\u003cnumber\u003e | number`.\n- `\"all\"` reports any union containing a Promise-like type.",
1241
+ "markdownDescription": "Controls which union types are reported in conditionals.\n- `\"none\"` only reports values that are always Promise-like.\n- `\"strict\"` also reports unions where the non-Promise types match the awaited Promise types,\nsuch as `Promise\u003cnumber\u003e | number`.\n- `\"all\"` reports any union containing a Promise-like type."
1242
+ }
1243
+ },
1244
+ "type": "object"
1245
+ },
1212
1246
  "ChecksVoidReturn": {
1213
1247
  "anyOf": [
1214
1248
  {
@@ -2391,6 +2425,9 @@
2391
2425
  "effecttsgo/flat-map-ignored-param-to-and-then": {
2392
2426
  "$ref": "#/definitions/RuleNoConfig"
2393
2427
  },
2428
+ "effecttsgo/flat-map-provide-service-to-provide-service-effect": {
2429
+ "$ref": "#/definitions/RuleNoConfig"
2430
+ },
2394
2431
  "effecttsgo/flat-map-to-map": {
2395
2432
  "$ref": "#/definitions/RuleNoConfig"
2396
2433
  },
@@ -2403,6 +2440,9 @@
2403
2440
  "effecttsgo/floating-effect-in-vitest": {
2404
2441
  "$ref": "#/definitions/RuleNoConfig"
2405
2442
  },
2443
+ "effecttsgo/for-loop-push-to-for-each": {
2444
+ "$ref": "#/definitions/RuleNoConfig"
2445
+ },
2406
2446
  "effecttsgo/generic-effect-services": {
2407
2447
  "$ref": "#/definitions/RuleNoConfig"
2408
2448
  },
@@ -15293,10 +15333,14 @@
15293
15333
  "additionalProperties": false,
15294
15334
  "properties": {
15295
15335
  "checksConditionals": {
15336
+ "allOf": [
15337
+ {
15338
+ "$ref": "#/definitions/ChecksConditionals"
15339
+ }
15340
+ ],
15296
15341
  "default": true,
15297
- "description": "Whether to check if Promises are used in conditionals.\nWhen true, disallows using Promises in conditions where a boolean is expected.",
15298
- "markdownDescription": "Whether to check if Promises are used in conditionals.\nWhen true, disallows using Promises in conditions where a boolean is expected.",
15299
- "type": "boolean"
15342
+ "description": "Whether to check if Promises are used in conditionals.\nCan be a boolean to enable/disable the check, or an object to control union types.",
15343
+ "markdownDescription": "Whether to check if Promises are used in conditionals.\nCan be a boolean to enable/disable the check, or an object to control union types."
15300
15344
  },
15301
15345
  "checksSpreads": {
15302
15346
  "default": true,
@@ -17516,8 +17560,8 @@
17516
17560
  "type": "boolean"
17517
17561
  },
17518
17562
  "typeCheck": {
17519
- "description": "Enable experimental type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed.",
17520
- "markdownDescription": "Enable experimental type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed.",
17563
+ "description": "Enable type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed.",
17564
+ "markdownDescription": "Enable type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed.",
17521
17565
  "type": "boolean"
17522
17566
  }
17523
17567
  },
@@ -17541,8 +17585,8 @@
17541
17585
  "$ref": "#/definitions/GlobSet"
17542
17586
  }
17543
17587
  ],
17544
- "description": "A list of glob patterns to exclude from this override.\n\nFiles matching these patterns are not globally ignored; this override\nsimply does not apply to them.\n\n## Example\n`[ \"*.generated.ts\", \"fixtures/**\" ]`",
17545
- "markdownDescription": "A list of glob patterns to exclude from this override.\n\nFiles matching these patterns are not globally ignored; this override\nsimply does not apply to them.\n\n## Example\n`[ \"*.generated.ts\", \"fixtures/**\" ]`"
17588
+ "description": "A list of glob patterns to exclude from this override.\n\nFiles matching these patterns are not globally ignored; this override\nsimply does not apply to them.\n\nExample: `[ \"*.generated.ts\", \"fixtures/**\" ]`",
17589
+ "markdownDescription": "A list of glob patterns to exclude from this override.\n\nFiles matching these patterns are not globally ignored; this override\nsimply does not apply to them.\n\nExample: `[ \"*.generated.ts\", \"fixtures/**\" ]`"
17546
17590
  },
17547
17591
  "files": {
17548
17592
  "allOf": [
@@ -17550,8 +17594,8 @@
17550
17594
  "$ref": "#/definitions/GlobSet"
17551
17595
  }
17552
17596
  ],
17553
- "description": "A list of glob patterns to override.\n\n## Example\n`[ \"*.test.ts\", \"*.spec.ts\" ]`",
17554
- "markdownDescription": "A list of glob patterns to override.\n\n## Example\n`[ \"*.test.ts\", \"*.spec.ts\" ]`"
17597
+ "description": "A list of glob patterns to override.\n\nExample: `[ \"*.test.ts\", \"*.spec.ts\" ]`",
17598
+ "markdownDescription": "A list of glob patterns to override.\n\nExample: `[ \"*.test.ts\", \"*.spec.ts\" ]`"
17555
17599
  },
17556
17600
  "globals": {
17557
17601
  "allOf": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/tsgo",
3
- "version": "0.69.0",
3
+ "version": "0.70.0",
4
4
  "type": "module",
5
5
  "description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
6
6
  "license": "MIT",
@@ -42,13 +42,13 @@
42
42
  "schema.json"
43
43
  ],
44
44
  "optionalDependencies": {
45
- "@effect/tsgo-win32-x64": "0.69.0",
46
- "@effect/tsgo-win32-arm64": "0.69.0",
47
- "@effect/tsgo-linux-x64": "0.69.0",
48
- "@effect/tsgo-linux-arm64": "0.69.0",
49
- "@effect/tsgo-linux-arm": "0.69.0",
50
- "@effect/tsgo-darwin-x64": "0.69.0",
51
- "@effect/tsgo-darwin-arm64": "0.69.0"
45
+ "@effect/tsgo-win32-x64": "0.70.0",
46
+ "@effect/tsgo-win32-arm64": "0.70.0",
47
+ "@effect/tsgo-linux-x64": "0.70.0",
48
+ "@effect/tsgo-linux-arm64": "0.70.0",
49
+ "@effect/tsgo-linux-arm": "0.70.0",
50
+ "@effect/tsgo-darwin-x64": "0.70.0",
51
+ "@effect/tsgo-darwin-arm64": "0.70.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@effect/platform-node": "^4.1.2",
package/schema.json CHANGED
@@ -2571,6 +2571,11 @@
2571
2571
  "default": "suggestion",
2572
2572
  "description": "Suggests using Effect.andThen instead of Effect.flatMap when a zero-parameter callback returns an existing Effect value"
2573
2573
  },
2574
+ "flatMapProvideServiceToProvideServiceEffect": {
2575
+ "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2576
+ "default": "suggestion",
2577
+ "description": "Suggests Effect.provideServiceEffect when a flatMap or andThen callback only forwards its parameter to Effect.provideService"
2578
+ },
2574
2579
  "flatMapToMap": {
2575
2580
  "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2576
2581
  "default": "suggestion",
@@ -2591,6 +2596,11 @@
2591
2596
  "default": "error",
2592
2597
  "description": "Detects Effects returned from non-Effect-aware Vitest callbacks"
2593
2598
  },
2599
+ "forLoopPushToForEach": {
2600
+ "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2601
+ "default": "off",
2602
+ "description": "Suggests Effect.forEach instead of a for-of loop that pushes yielded Effect results into an accumulator"
2603
+ },
2594
2604
  "genericEffectServices": {
2595
2605
  "$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
2596
2606
  "default": "warning",