@effect/language-service 0.83.1 → 0.84.1

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.83.1",
3
+ "version": "0.84.1",
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
@@ -2363,6 +2363,54 @@
2363
2363
  "default": "warning",
2364
2364
  "description": "Prevents services with type parameters that cannot be discriminated at runtime Default severity: warning."
2365
2365
  },
2366
+ "globalConsole": {
2367
+ "type": "string",
2368
+ "enum": [
2369
+ "off",
2370
+ "error",
2371
+ "warning",
2372
+ "message",
2373
+ "suggestion"
2374
+ ],
2375
+ "default": "off",
2376
+ "description": "Warns when using console methods outside Effect generators instead of Effect.log/Logger Default severity: off."
2377
+ },
2378
+ "globalConsoleInEffect": {
2379
+ "type": "string",
2380
+ "enum": [
2381
+ "off",
2382
+ "error",
2383
+ "warning",
2384
+ "message",
2385
+ "suggestion"
2386
+ ],
2387
+ "default": "off",
2388
+ "description": "Warns when using console methods inside Effect generators instead of Effect.log/Logger Default severity: off."
2389
+ },
2390
+ "globalDate": {
2391
+ "type": "string",
2392
+ "enum": [
2393
+ "off",
2394
+ "error",
2395
+ "warning",
2396
+ "message",
2397
+ "suggestion"
2398
+ ],
2399
+ "default": "off",
2400
+ "description": "Warns when using Date.now() or new Date() outside Effect generators instead of Clock/DateTime Default severity: off."
2401
+ },
2402
+ "globalDateInEffect": {
2403
+ "type": "string",
2404
+ "enum": [
2405
+ "off",
2406
+ "error",
2407
+ "warning",
2408
+ "message",
2409
+ "suggestion"
2410
+ ],
2411
+ "default": "off",
2412
+ "description": "Warns when using Date.now() or new Date() inside Effect generators instead of Clock/DateTime Default severity: off."
2413
+ },
2366
2414
  "globalErrorInEffectCatch": {
2367
2415
  "type": "string",
2368
2416
  "enum": [
@@ -2397,7 +2445,67 @@
2397
2445
  "suggestion"
2398
2446
  ],
2399
2447
  "default": "off",
2400
- "description": "Warns when using the global fetch function instead of the Effect HTTP client Default severity: off."
2448
+ "description": "Warns when using the global fetch function outside Effect generators instead of the Effect HTTP client Default severity: off."
2449
+ },
2450
+ "globalFetchInEffect": {
2451
+ "type": "string",
2452
+ "enum": [
2453
+ "off",
2454
+ "error",
2455
+ "warning",
2456
+ "message",
2457
+ "suggestion"
2458
+ ],
2459
+ "default": "off",
2460
+ "description": "Warns when using the global fetch function inside Effect generators instead of the Effect HTTP client Default severity: off."
2461
+ },
2462
+ "globalRandom": {
2463
+ "type": "string",
2464
+ "enum": [
2465
+ "off",
2466
+ "error",
2467
+ "warning",
2468
+ "message",
2469
+ "suggestion"
2470
+ ],
2471
+ "default": "off",
2472
+ "description": "Warns when using Math.random() outside Effect generators instead of the Random service Default severity: off."
2473
+ },
2474
+ "globalRandomInEffect": {
2475
+ "type": "string",
2476
+ "enum": [
2477
+ "off",
2478
+ "error",
2479
+ "warning",
2480
+ "message",
2481
+ "suggestion"
2482
+ ],
2483
+ "default": "off",
2484
+ "description": "Warns when using Math.random() inside Effect generators instead of the Random service Default severity: off."
2485
+ },
2486
+ "globalTimers": {
2487
+ "type": "string",
2488
+ "enum": [
2489
+ "off",
2490
+ "error",
2491
+ "warning",
2492
+ "message",
2493
+ "suggestion"
2494
+ ],
2495
+ "default": "off",
2496
+ "description": "Warns when using setTimeout/setInterval outside Effect generators instead of Effect.sleep/Schedule Default severity: off."
2497
+ },
2498
+ "globalTimersInEffect": {
2499
+ "type": "string",
2500
+ "enum": [
2501
+ "off",
2502
+ "error",
2503
+ "warning",
2504
+ "message",
2505
+ "suggestion"
2506
+ ],
2507
+ "default": "off",
2508
+ "description": "Warns when using setTimeout/setInterval inside Effect generators instead of Effect.sleep/Schedule Default severity: off."
2401
2509
  },
2402
2510
  "importFromBarrel": {
2403
2511
  "type": "string",
@@ -2649,7 +2757,7 @@
2649
2757
  "suggestion"
2650
2758
  ],
2651
2759
  "default": "suggestion",
2652
- "description": "Suggests using Runtime methods instead of Effect.run* inside Effect contexts Default severity: suggestion."
2760
+ "description": "Suggests using Runtime or Effect.run*With methods instead of Effect.run* inside Effect contexts Default severity: suggestion."
2653
2761
  },
2654
2762
  "schemaStructWithTag": {
2655
2763
  "type": "string",