@effect/tsgo 0.51.0 → 0.52.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 +12 -8
- package/dist/effect-tsgo.cjs +1950 -712
- package/lib/getExePath.js +5 -2
- package/oxlint-presets/correctness.json +1 -0
- package/oxlint-presets/effect-native.json +2 -0
- package/oxlint-presets/index.js +12 -0
- package/oxlint-presets/recommended.json +3 -0
- package/oxlint-presets/strict.json +3 -0
- package/oxlint-presets/style.json +3 -0
- package/oxlint-schema.json +18 -0
- package/package.json +11 -11
- package/schema.json +31 -11
package/lib/getExePath.js
CHANGED
|
@@ -62,7 +62,8 @@ export default function getExePath() {
|
|
|
62
62
|
|
|
63
63
|
const packageDir = path.dirname(packageJson);
|
|
64
64
|
const upstream = readJson(path.join(packageDir, "lib", "upstream.json"));
|
|
65
|
-
|
|
65
|
+
const latest = upstream.tags?.typescript?.latest;
|
|
66
|
+
if (upstream.schemaVersion !== 5 || typeof upstream.components?.typescript !== "object" || typeof latest !== "string") {
|
|
66
67
|
throw new Error("Invalid " + platformPackageName + "/lib/upstream.json.");
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -70,7 +71,9 @@ export default function getExePath() {
|
|
|
70
71
|
if (typeof component?.gitHead !== "string") {
|
|
71
72
|
throw new Error("Invalid TypeScript component metadata in " + platformPackageName + "/lib/upstream.json.");
|
|
72
73
|
}
|
|
73
|
-
let exe =
|
|
74
|
+
let exe = version === latest
|
|
75
|
+
? path.join(packageDir, "lib", "tsc")
|
|
76
|
+
: path.join(packageDir, "artifacts", "typescript", version, "tsc");
|
|
74
77
|
if (process.platform === "win32") {
|
|
75
78
|
exe += ".exe";
|
|
76
79
|
if (exe.length >= 248) {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"effecttsgo/outdated-api": "warn",
|
|
26
26
|
"effecttsgo/overridden-schema-constructor": "warn",
|
|
27
27
|
"effecttsgo/promise-in-effect-success": "warn",
|
|
28
|
+
"effecttsgo/schema-class-missing-brand": "warn",
|
|
28
29
|
"effecttsgo/schema-literal-non-finite": "warn",
|
|
29
30
|
"effecttsgo/schema-opaque-instance-member": "warn",
|
|
30
31
|
"effecttsgo/unsafe-effect-type-assertion": "warn",
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"effecttsgo/instance-of-schema": "warn",
|
|
25
25
|
"effecttsgo/new-promise": "warn",
|
|
26
26
|
"effecttsgo/node-builtin-import": "warn",
|
|
27
|
+
"effecttsgo/prefer-effect-array": "warn",
|
|
28
|
+
"effecttsgo/prefer-effect-record": "warn",
|
|
27
29
|
"effecttsgo/prefer-schema-over-json": "warn",
|
|
28
30
|
"effecttsgo/process-env": "warn",
|
|
29
31
|
"effecttsgo/process-env-in-effect": "warn",
|
package/oxlint-presets/index.js
CHANGED
|
@@ -58,6 +58,7 @@ export const correctness = {
|
|
|
58
58
|
"effecttsgo/outdated-api": "warn",
|
|
59
59
|
"effecttsgo/overridden-schema-constructor": "warn",
|
|
60
60
|
"effecttsgo/promise-in-effect-success": "warn",
|
|
61
|
+
"effecttsgo/schema-class-missing-brand": "warn",
|
|
61
62
|
"effecttsgo/schema-literal-non-finite": "warn",
|
|
62
63
|
"effecttsgo/schema-opaque-instance-member": "warn",
|
|
63
64
|
"effecttsgo/unsafe-effect-type-assertion": "warn",
|
|
@@ -91,6 +92,8 @@ export const effectNative = {
|
|
|
91
92
|
"effecttsgo/instance-of-schema": "warn",
|
|
92
93
|
"effecttsgo/new-promise": "warn",
|
|
93
94
|
"effecttsgo/node-builtin-import": "warn",
|
|
95
|
+
"effecttsgo/prefer-effect-array": "warn",
|
|
96
|
+
"effecttsgo/prefer-effect-record": "warn",
|
|
94
97
|
"effecttsgo/prefer-schema-over-json": "warn",
|
|
95
98
|
"effecttsgo/process-env": "warn",
|
|
96
99
|
"effecttsgo/process-env-in-effect": "warn",
|
|
@@ -142,11 +145,13 @@ export const recommended = {
|
|
|
142
145
|
"effecttsgo/effect-in-void-success": "warn",
|
|
143
146
|
"effecttsgo/effect-map-flatten": "warn",
|
|
144
147
|
"effecttsgo/effect-map-void": "warn",
|
|
148
|
+
"effecttsgo/effect-sleep-zero-to-yield-now": "warn",
|
|
145
149
|
"effecttsgo/effect-succeed-with-void": "warn",
|
|
146
150
|
"effecttsgo/experimental-api-usage": "warn",
|
|
147
151
|
"effecttsgo/flat-map-conditional-to-filter-or-fail": "warn",
|
|
148
152
|
"effecttsgo/flat-map-ignored-param-to-and-then": "warn",
|
|
149
153
|
"effecttsgo/flat-map-to-map": "warn",
|
|
154
|
+
"effecttsgo/flat-map-to-tap": "warn",
|
|
150
155
|
"effecttsgo/floating-effect": "error",
|
|
151
156
|
"effecttsgo/floating-effect-in-vitest": "error",
|
|
152
157
|
"effecttsgo/generic-effect-services": "warn",
|
|
@@ -184,6 +189,7 @@ export const recommended = {
|
|
|
184
189
|
"effecttsgo/return-effect-in-gen": "warn",
|
|
185
190
|
"effecttsgo/run-effect-inside-effect": "warn",
|
|
186
191
|
"effecttsgo/run-of-exit-to-run-exit": "warn",
|
|
192
|
+
"effecttsgo/schema-class-missing-brand": "warn",
|
|
187
193
|
"effecttsgo/schema-literal-non-finite": "error",
|
|
188
194
|
"effecttsgo/schema-number": "warn",
|
|
189
195
|
"effecttsgo/schema-opaque-instance-member": "error",
|
|
@@ -235,11 +241,13 @@ export const strict = {
|
|
|
235
241
|
"effecttsgo/effect-in-void-success": "error",
|
|
236
242
|
"effecttsgo/effect-map-flatten": "error",
|
|
237
243
|
"effecttsgo/effect-map-void": "error",
|
|
244
|
+
"effecttsgo/effect-sleep-zero-to-yield-now": "error",
|
|
238
245
|
"effecttsgo/effect-succeed-with-void": "error",
|
|
239
246
|
"effecttsgo/experimental-api-usage": "error",
|
|
240
247
|
"effecttsgo/flat-map-conditional-to-filter-or-fail": "error",
|
|
241
248
|
"effecttsgo/flat-map-ignored-param-to-and-then": "error",
|
|
242
249
|
"effecttsgo/flat-map-to-map": "error",
|
|
250
|
+
"effecttsgo/flat-map-to-tap": "error",
|
|
243
251
|
"effecttsgo/floating-effect": "error",
|
|
244
252
|
"effecttsgo/floating-effect-in-vitest": "error",
|
|
245
253
|
"effecttsgo/generic-effect-services": "error",
|
|
@@ -277,6 +285,7 @@ export const strict = {
|
|
|
277
285
|
"effecttsgo/return-effect-in-gen": "error",
|
|
278
286
|
"effecttsgo/run-effect-inside-effect": "error",
|
|
279
287
|
"effecttsgo/run-of-exit-to-run-exit": "error",
|
|
288
|
+
"effecttsgo/schema-class-missing-brand": "error",
|
|
280
289
|
"effecttsgo/schema-literal-non-finite": "error",
|
|
281
290
|
"effecttsgo/schema-number": "error",
|
|
282
291
|
"effecttsgo/schema-opaque-instance-member": "error",
|
|
@@ -321,10 +330,12 @@ export const style = {
|
|
|
321
330
|
"effecttsgo/effect-fn-opportunity": "warn",
|
|
322
331
|
"effecttsgo/effect-map-flatten": "warn",
|
|
323
332
|
"effecttsgo/effect-map-void": "warn",
|
|
333
|
+
"effecttsgo/effect-sleep-zero-to-yield-now": "warn",
|
|
324
334
|
"effecttsgo/effect-succeed-with-void": "warn",
|
|
325
335
|
"effecttsgo/flat-map-conditional-to-filter-or-fail": "warn",
|
|
326
336
|
"effecttsgo/flat-map-ignored-param-to-and-then": "warn",
|
|
327
337
|
"effecttsgo/flat-map-to-map": "warn",
|
|
338
|
+
"effecttsgo/flat-map-to-tap": "warn",
|
|
328
339
|
"effecttsgo/map-some-to-as-some": "warn",
|
|
329
340
|
"effecttsgo/match-effect-to-map-both": "warn",
|
|
330
341
|
"effecttsgo/match-effect-to-match": "warn",
|
|
@@ -335,6 +346,7 @@ export const style = {
|
|
|
335
346
|
"effecttsgo/nested-effect-gen-yield": "warn",
|
|
336
347
|
"effecttsgo/new-schema-class": "warn",
|
|
337
348
|
"effecttsgo/option-match-to-from-option": "warn",
|
|
349
|
+
"effecttsgo/prefer-schema-tagged-error": "warn",
|
|
338
350
|
"effecttsgo/prefer-schema-type-property": "warn",
|
|
339
351
|
"effecttsgo/prefer-succeed-some-or-none": "warn",
|
|
340
352
|
"effecttsgo/prefer-typed-schema-decoder": "warn",
|
|
@@ -30,11 +30,13 @@
|
|
|
30
30
|
"effecttsgo/effect-in-void-success": "warn",
|
|
31
31
|
"effecttsgo/effect-map-flatten": "warn",
|
|
32
32
|
"effecttsgo/effect-map-void": "warn",
|
|
33
|
+
"effecttsgo/effect-sleep-zero-to-yield-now": "warn",
|
|
33
34
|
"effecttsgo/effect-succeed-with-void": "warn",
|
|
34
35
|
"effecttsgo/experimental-api-usage": "warn",
|
|
35
36
|
"effecttsgo/flat-map-conditional-to-filter-or-fail": "warn",
|
|
36
37
|
"effecttsgo/flat-map-ignored-param-to-and-then": "warn",
|
|
37
38
|
"effecttsgo/flat-map-to-map": "warn",
|
|
39
|
+
"effecttsgo/flat-map-to-tap": "warn",
|
|
38
40
|
"effecttsgo/floating-effect": "error",
|
|
39
41
|
"effecttsgo/floating-effect-in-vitest": "error",
|
|
40
42
|
"effecttsgo/generic-effect-services": "warn",
|
|
@@ -72,6 +74,7 @@
|
|
|
72
74
|
"effecttsgo/return-effect-in-gen": "warn",
|
|
73
75
|
"effecttsgo/run-effect-inside-effect": "warn",
|
|
74
76
|
"effecttsgo/run-of-exit-to-run-exit": "warn",
|
|
77
|
+
"effecttsgo/schema-class-missing-brand": "warn",
|
|
75
78
|
"effecttsgo/schema-literal-non-finite": "error",
|
|
76
79
|
"effecttsgo/schema-number": "warn",
|
|
77
80
|
"effecttsgo/schema-opaque-instance-member": "error",
|
|
@@ -30,11 +30,13 @@
|
|
|
30
30
|
"effecttsgo/effect-in-void-success": "error",
|
|
31
31
|
"effecttsgo/effect-map-flatten": "error",
|
|
32
32
|
"effecttsgo/effect-map-void": "error",
|
|
33
|
+
"effecttsgo/effect-sleep-zero-to-yield-now": "error",
|
|
33
34
|
"effecttsgo/effect-succeed-with-void": "error",
|
|
34
35
|
"effecttsgo/experimental-api-usage": "error",
|
|
35
36
|
"effecttsgo/flat-map-conditional-to-filter-or-fail": "error",
|
|
36
37
|
"effecttsgo/flat-map-ignored-param-to-and-then": "error",
|
|
37
38
|
"effecttsgo/flat-map-to-map": "error",
|
|
39
|
+
"effecttsgo/flat-map-to-tap": "error",
|
|
38
40
|
"effecttsgo/floating-effect": "error",
|
|
39
41
|
"effecttsgo/floating-effect-in-vitest": "error",
|
|
40
42
|
"effecttsgo/generic-effect-services": "error",
|
|
@@ -72,6 +74,7 @@
|
|
|
72
74
|
"effecttsgo/return-effect-in-gen": "error",
|
|
73
75
|
"effecttsgo/run-effect-inside-effect": "error",
|
|
74
76
|
"effecttsgo/run-of-exit-to-run-exit": "error",
|
|
77
|
+
"effecttsgo/schema-class-missing-brand": "error",
|
|
75
78
|
"effecttsgo/schema-literal-non-finite": "error",
|
|
76
79
|
"effecttsgo/schema-number": "error",
|
|
77
80
|
"effecttsgo/schema-opaque-instance-member": "error",
|
|
@@ -23,10 +23,12 @@
|
|
|
23
23
|
"effecttsgo/effect-fn-opportunity": "warn",
|
|
24
24
|
"effecttsgo/effect-map-flatten": "warn",
|
|
25
25
|
"effecttsgo/effect-map-void": "warn",
|
|
26
|
+
"effecttsgo/effect-sleep-zero-to-yield-now": "warn",
|
|
26
27
|
"effecttsgo/effect-succeed-with-void": "warn",
|
|
27
28
|
"effecttsgo/flat-map-conditional-to-filter-or-fail": "warn",
|
|
28
29
|
"effecttsgo/flat-map-ignored-param-to-and-then": "warn",
|
|
29
30
|
"effecttsgo/flat-map-to-map": "warn",
|
|
31
|
+
"effecttsgo/flat-map-to-tap": "warn",
|
|
30
32
|
"effecttsgo/map-some-to-as-some": "warn",
|
|
31
33
|
"effecttsgo/match-effect-to-map-both": "warn",
|
|
32
34
|
"effecttsgo/match-effect-to-match": "warn",
|
|
@@ -37,6 +39,7 @@
|
|
|
37
39
|
"effecttsgo/nested-effect-gen-yield": "warn",
|
|
38
40
|
"effecttsgo/new-schema-class": "warn",
|
|
39
41
|
"effecttsgo/option-match-to-from-option": "warn",
|
|
42
|
+
"effecttsgo/prefer-schema-tagged-error": "warn",
|
|
40
43
|
"effecttsgo/prefer-schema-type-property": "warn",
|
|
41
44
|
"effecttsgo/prefer-succeed-some-or-none": "warn",
|
|
42
45
|
"effecttsgo/prefer-typed-schema-decoder": "warn",
|
package/oxlint-schema.json
CHANGED
|
@@ -2326,6 +2326,9 @@
|
|
|
2326
2326
|
"effecttsgo/effect-map-void": {
|
|
2327
2327
|
"$ref": "#/definitions/RuleNoConfig"
|
|
2328
2328
|
},
|
|
2329
|
+
"effecttsgo/effect-sleep-zero-to-yield-now": {
|
|
2330
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
2331
|
+
},
|
|
2329
2332
|
"effecttsgo/effect-succeed-with-void": {
|
|
2330
2333
|
"$ref": "#/definitions/RuleNoConfig"
|
|
2331
2334
|
},
|
|
@@ -2344,6 +2347,9 @@
|
|
|
2344
2347
|
"effecttsgo/flat-map-to-map": {
|
|
2345
2348
|
"$ref": "#/definitions/RuleNoConfig"
|
|
2346
2349
|
},
|
|
2350
|
+
"effecttsgo/flat-map-to-tap": {
|
|
2351
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
2352
|
+
},
|
|
2347
2353
|
"effecttsgo/floating-effect": {
|
|
2348
2354
|
"$ref": "#/definitions/RuleNoConfig"
|
|
2349
2355
|
},
|
|
@@ -2473,9 +2479,18 @@
|
|
|
2473
2479
|
"effecttsgo/overridden-schema-constructor": {
|
|
2474
2480
|
"$ref": "#/definitions/RuleNoConfig"
|
|
2475
2481
|
},
|
|
2482
|
+
"effecttsgo/prefer-effect-array": {
|
|
2483
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
2484
|
+
},
|
|
2485
|
+
"effecttsgo/prefer-effect-record": {
|
|
2486
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
2487
|
+
},
|
|
2476
2488
|
"effecttsgo/prefer-schema-over-json": {
|
|
2477
2489
|
"$ref": "#/definitions/RuleNoConfig"
|
|
2478
2490
|
},
|
|
2491
|
+
"effecttsgo/prefer-schema-tagged-error": {
|
|
2492
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
2493
|
+
},
|
|
2479
2494
|
"effecttsgo/prefer-schema-type-property": {
|
|
2480
2495
|
"$ref": "#/definitions/RuleNoConfig"
|
|
2481
2496
|
},
|
|
@@ -2521,6 +2536,9 @@
|
|
|
2521
2536
|
"effecttsgo/run-of-exit-to-run-exit": {
|
|
2522
2537
|
"$ref": "#/definitions/RuleNoConfig"
|
|
2523
2538
|
},
|
|
2539
|
+
"effecttsgo/schema-class-missing-brand": {
|
|
2540
|
+
"$ref": "#/definitions/RuleNoConfig"
|
|
2541
|
+
},
|
|
2524
2542
|
"effecttsgo/schema-literal-non-finite": {
|
|
2525
2543
|
"$ref": "#/definitions/RuleNoConfig"
|
|
2526
2544
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/tsgo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"schema.json"
|
|
42
42
|
],
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@effect/tsgo-win32-x64": "0.
|
|
45
|
-
"@effect/tsgo-win32-arm64": "0.
|
|
46
|
-
"@effect/tsgo-linux-x64": "0.
|
|
47
|
-
"@effect/tsgo-linux-arm64": "0.
|
|
48
|
-
"@effect/tsgo-linux-arm": "0.
|
|
49
|
-
"@effect/tsgo-darwin-x64": "0.
|
|
50
|
-
"@effect/tsgo-darwin-arm64": "0.
|
|
44
|
+
"@effect/tsgo-win32-x64": "0.52.0",
|
|
45
|
+
"@effect/tsgo-win32-arm64": "0.52.0",
|
|
46
|
+
"@effect/tsgo-linux-x64": "0.52.0",
|
|
47
|
+
"@effect/tsgo-linux-arm64": "0.52.0",
|
|
48
|
+
"@effect/tsgo-linux-arm": "0.52.0",
|
|
49
|
+
"@effect/tsgo-darwin-x64": "0.52.0",
|
|
50
|
+
"@effect/tsgo-darwin-arm64": "0.52.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@effect/platform-node": "^4.0.
|
|
54
|
-
"@effect/platform-node-shared": "^4.0.
|
|
53
|
+
"@effect/platform-node": "^4.0.2",
|
|
54
|
+
"@effect/platform-node-shared": "^4.0.2",
|
|
55
55
|
"@types/node": "^24.3.0",
|
|
56
56
|
"tsdown": "^0.20.1",
|
|
57
57
|
"typescript": "^5.9.2",
|
|
58
|
-
"effect": "^4.0.
|
|
58
|
+
"effect": "^4.0.2",
|
|
59
59
|
"vitest": "^3.2.1"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
package/schema.json
CHANGED
|
@@ -1542,11 +1542,6 @@
|
|
|
1542
1542
|
"description": "Controls Effect completions.",
|
|
1543
1543
|
"type": "boolean"
|
|
1544
1544
|
},
|
|
1545
|
-
"debug": {
|
|
1546
|
-
"default": false,
|
|
1547
|
-
"description": "Enables additional debug-only Effect language service output.",
|
|
1548
|
-
"type": "boolean"
|
|
1549
|
-
},
|
|
1550
1545
|
"diagnosticSeverity": {
|
|
1551
1546
|
"$ref": "#/definitions/effectLanguageServicePluginDiagnosticSeverityDefinition",
|
|
1552
1547
|
"default": {},
|
|
@@ -2361,7 +2356,7 @@
|
|
|
2361
2356
|
"catchIfTagToCatchTag": {
|
|
2362
2357
|
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
2363
2358
|
"default": "suggestion",
|
|
2364
|
-
"description": "Suggests Effect.catchTag instead of Effect.catchIf with a
|
|
2359
|
+
"description": "Suggests Effect.catchTag instead of Effect.catchIf with a _tag equality or Predicate.isTagged predicate"
|
|
2365
2360
|
},
|
|
2366
2361
|
"catchRefailToTapError": {
|
|
2367
2362
|
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
@@ -2458,6 +2453,11 @@
|
|
|
2458
2453
|
"default": "suggestion",
|
|
2459
2454
|
"description": "Suggests using Effect.asVoid instead of Effect.map(() =\u003e void 0), Effect.map(() =\u003e undefined), or Effect.map(() =\u003e {})"
|
|
2460
2455
|
},
|
|
2456
|
+
"effectSleepZeroToYieldNow": {
|
|
2457
|
+
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
2458
|
+
"default": "suggestion",
|
|
2459
|
+
"description": "Suggests Effect.yieldNow for cooperative yielding instead of sleeping for zero duration"
|
|
2460
|
+
},
|
|
2461
2461
|
"effectSucceedWithVoid": {
|
|
2462
2462
|
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
2463
2463
|
"default": "suggestion",
|
|
@@ -2488,6 +2488,11 @@
|
|
|
2488
2488
|
"default": "suggestion",
|
|
2489
2489
|
"description": "Suggests using Effect.map instead of Effect.flatMap when the callback only wraps its result with Effect.succeed"
|
|
2490
2490
|
},
|
|
2491
|
+
"flatMapToTap": {
|
|
2492
|
+
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
2493
|
+
"default": "suggestion",
|
|
2494
|
+
"description": "Suggests Effect.tap when a flatMap or andThen callback runs an effect and returns its unchanged parameter"
|
|
2495
|
+
},
|
|
2491
2496
|
"floatingEffect": {
|
|
2492
2497
|
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
2493
2498
|
"default": "error",
|
|
@@ -2703,11 +2708,26 @@
|
|
|
2703
2708
|
"default": "error",
|
|
2704
2709
|
"description": "Prevents overriding constructors in Schema classes which breaks decoding behavior"
|
|
2705
2710
|
},
|
|
2711
|
+
"preferEffectArray": {
|
|
2712
|
+
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
2713
|
+
"default": "off",
|
|
2714
|
+
"description": "Suggests Effect Array APIs for native array member references, with semantic caveats"
|
|
2715
|
+
},
|
|
2716
|
+
"preferEffectRecord": {
|
|
2717
|
+
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
2718
|
+
"default": "off",
|
|
2719
|
+
"description": "Suggests Effect Record APIs for native Object member references, with semantic caveats"
|
|
2720
|
+
},
|
|
2706
2721
|
"preferSchemaOverJson": {
|
|
2707
2722
|
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
2708
2723
|
"default": "off",
|
|
2709
2724
|
"description": "Suggests using Effect Schema for JSON operations instead of JSON.parse/JSON.stringify"
|
|
2710
2725
|
},
|
|
2726
|
+
"preferSchemaTaggedError": {
|
|
2727
|
+
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
2728
|
+
"default": "off",
|
|
2729
|
+
"description": "Suggests using Schema.TaggedError instead of Data.TaggedError"
|
|
2730
|
+
},
|
|
2711
2731
|
"preferSchemaTypeProperty": {
|
|
2712
2732
|
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
2713
2733
|
"default": "off",
|
|
@@ -2783,6 +2803,11 @@
|
|
|
2783
2803
|
"default": "suggestion",
|
|
2784
2804
|
"description": "Suggests using Effect.runPromiseExit instead of passing Effect.exit to Effect.runPromise"
|
|
2785
2805
|
},
|
|
2806
|
+
"schemaClassMissingBrand": {
|
|
2807
|
+
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
2808
|
+
"default": "suggestion",
|
|
2809
|
+
"description": "Warns when Schema classes, errors, or Opaque classes omit the brand type argument"
|
|
2810
|
+
},
|
|
2786
2811
|
"schemaLiteralNonFinite": {
|
|
2787
2812
|
"$ref": "#/definitions/effectLanguageServicePluginSeverityDefinition",
|
|
2788
2813
|
"default": "error",
|
|
@@ -2977,11 +3002,6 @@
|
|
|
2977
3002
|
"description": "Controls Effect completions.",
|
|
2978
3003
|
"type": "boolean"
|
|
2979
3004
|
},
|
|
2980
|
-
"debug": {
|
|
2981
|
-
"default": false,
|
|
2982
|
-
"description": "Enables additional debug-only Effect language service output.",
|
|
2983
|
-
"type": "boolean"
|
|
2984
|
-
},
|
|
2985
3005
|
"diagnosticSeverity": {
|
|
2986
3006
|
"$ref": "#/definitions/effectLanguageServicePluginDiagnosticSeverityDefinition",
|
|
2987
3007
|
"default": {},
|