@effect/language-service 0.84.3 → 0.85.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect/language-service",
3
- "version": "0.84.3",
3
+ "version": "0.85.0",
4
4
  "description": "A Language-Service Plugin to Refactor and Diagnostic effect-ts projects",
5
5
  "main": "index.cjs",
6
6
  "bin": {
package/schema.json CHANGED
@@ -2171,6 +2171,18 @@
2171
2171
  "default": "off",
2172
2172
  "description": "Detects 'any' or 'unknown' types in Effect error or requirements channels Default severity: off."
2173
2173
  },
2174
+ "asyncFunction": {
2175
+ "type": "string",
2176
+ "enum": [
2177
+ "off",
2178
+ "error",
2179
+ "warning",
2180
+ "message",
2181
+ "suggestion"
2182
+ ],
2183
+ "default": "off",
2184
+ "description": "Warns when declaring async functions and suggests using Effect values and Effect.gen for async control flow Default severity: off."
2185
+ },
2174
2186
  "catchAllToMapError": {
2175
2187
  "type": "string",
2176
2188
  "enum": [
@@ -2207,6 +2219,30 @@
2207
2219
  "default": "error",
2208
2220
  "description": "Ensures Self type parameter matches the class name in Service/Tag/Schema classes Default severity: error."
2209
2221
  },
2222
+ "cryptoRandomUUID": {
2223
+ "type": "string",
2224
+ "enum": [
2225
+ "off",
2226
+ "error",
2227
+ "warning",
2228
+ "message",
2229
+ "suggestion"
2230
+ ],
2231
+ "default": "off",
2232
+ "description": "Warns when using crypto.randomUUID() outside Effect generators instead of the Effect Random module, which uses Effect-injected randomness rather than the crypto module behind the scenes Default severity: off."
2233
+ },
2234
+ "cryptoRandomUUIDInEffect": {
2235
+ "type": "string",
2236
+ "enum": [
2237
+ "off",
2238
+ "error",
2239
+ "warning",
2240
+ "message",
2241
+ "suggestion"
2242
+ ],
2243
+ "default": "off",
2244
+ "description": "Warns when using crypto.randomUUID() inside Effect generators instead of the Effect Random module, which uses Effect-injected randomness rather than the crypto module behind the scenes Default severity: off."
2245
+ },
2210
2246
  "deterministicKeys": {
2211
2247
  "type": "string",
2212
2248
  "enum": [
@@ -2231,6 +2267,18 @@
2231
2267
  "default": "warning",
2232
2268
  "description": "Detects when multiple versions of the same Effect package are loaded Default severity: warning."
2233
2269
  },
2270
+ "effectDoNotation": {
2271
+ "type": "string",
2272
+ "enum": [
2273
+ "off",
2274
+ "error",
2275
+ "warning",
2276
+ "message",
2277
+ "suggestion"
2278
+ ],
2279
+ "default": "off",
2280
+ "description": "Suggests using Effect.gen or Effect.fn instead of the Effect.Do notation helpers Default severity: off."
2281
+ },
2234
2282
  "effectFnIife": {
2235
2283
  "type": "string",
2236
2284
  "enum": [
@@ -2303,6 +2351,18 @@
2303
2351
  "default": "warning",
2304
2352
  "description": "Detects nested Effects in void success channels that may cause unexecuted effects Default severity: warning."
2305
2353
  },
2354
+ "effectMapFlatten": {
2355
+ "type": "string",
2356
+ "enum": [
2357
+ "off",
2358
+ "error",
2359
+ "warning",
2360
+ "message",
2361
+ "suggestion"
2362
+ ],
2363
+ "default": "suggestion",
2364
+ "description": "Suggests using Effect.flatMap instead of Effect.map followed by Effect.flatten in piping flows Default severity: suggestion."
2365
+ },
2306
2366
  "effectMapVoid": {
2307
2367
  "type": "string",
2308
2368
  "enum": [
@@ -2543,6 +2603,18 @@
2543
2603
  "default": "warning",
2544
2604
  "description": "Detects interdependencies in Layer.mergeAll calls where one layer provides a service that another layer requires Default severity: warning."
2545
2605
  },
2606
+ "lazyPromiseInEffectSync": {
2607
+ "type": "string",
2608
+ "enum": [
2609
+ "off",
2610
+ "error",
2611
+ "warning",
2612
+ "message",
2613
+ "suggestion"
2614
+ ],
2615
+ "default": "warning",
2616
+ "description": "Warns when Effect.sync lazily returns a Promise instead of using an async Effect constructor Default severity: warning."
2617
+ },
2546
2618
  "leakingRequirements": {
2547
2619
  "type": "string",
2548
2620
  "enum": [
@@ -2651,6 +2723,30 @@
2651
2723
  "default": "warning",
2652
2724
  "description": "Warns against chaining Effect.provide calls which can cause service lifecycle issues Default severity: warning."
2653
2725
  },
2726
+ "nestedEffectGenYield": {
2727
+ "type": "string",
2728
+ "enum": [
2729
+ "off",
2730
+ "error",
2731
+ "warning",
2732
+ "message",
2733
+ "suggestion"
2734
+ ],
2735
+ "default": "off",
2736
+ "description": "Warns when yielding a nested bare Effect.gen inside an existing Effect generator context Default severity: off."
2737
+ },
2738
+ "newPromise": {
2739
+ "type": "string",
2740
+ "enum": [
2741
+ "off",
2742
+ "error",
2743
+ "warning",
2744
+ "message",
2745
+ "suggestion"
2746
+ ],
2747
+ "default": "off",
2748
+ "description": "Warns when constructing promises with new Promise instead of using Effect APIs Default severity: off."
2749
+ },
2654
2750
  "nodeBuiltinImport": {
2655
2751
  "type": "string",
2656
2752
  "enum": [
@@ -2723,6 +2819,30 @@
2723
2819
  "default": "suggestion",
2724
2820
  "description": "Suggests using Effect Schema for JSON operations instead of JSON.parse/JSON.stringify which may throw Default severity: suggestion."
2725
2821
  },
2822
+ "processEnv": {
2823
+ "type": "string",
2824
+ "enum": [
2825
+ "off",
2826
+ "error",
2827
+ "warning",
2828
+ "message",
2829
+ "suggestion"
2830
+ ],
2831
+ "default": "off",
2832
+ "description": "Warns when reading process.env outside Effect generators instead of using Effect Config Default severity: off."
2833
+ },
2834
+ "processEnvInEffect": {
2835
+ "type": "string",
2836
+ "enum": [
2837
+ "off",
2838
+ "error",
2839
+ "warning",
2840
+ "message",
2841
+ "suggestion"
2842
+ ],
2843
+ "default": "off",
2844
+ "description": "Warns when reading process.env inside Effect generators instead of using Effect Config Default severity: off."
2845
+ },
2726
2846
  "redundantSchemaTagIdentifier": {
2727
2847
  "type": "string",
2728
2848
  "enum": [
@@ -2867,6 +2987,18 @@
2867
2987
  "default": "warning",
2868
2988
  "description": "Warns when catch callbacks return unknown instead of typed errors Default severity: warning."
2869
2989
  },
2990
+ "unnecessaryArrowBlock": {
2991
+ "type": "string",
2992
+ "enum": [
2993
+ "off",
2994
+ "error",
2995
+ "warning",
2996
+ "message",
2997
+ "suggestion"
2998
+ ],
2999
+ "default": "off",
3000
+ "description": "Suggests using a concise arrow body when the block only returns an expression Default severity: off."
3001
+ },
2870
3002
  "unnecessaryEffectGen": {
2871
3003
  "type": "string",
2872
3004
  "enum": [