@effect/language-service 0.81.0 → 0.83.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
@@ -10,7 +10,9 @@ This package implements a TypeScript language service plugin that allows additio
10
10
  2. Inside your tsconfig.json, you should add the plugin configuration as follows:
11
11
  ```jsonc
12
12
  {
13
- "$schema": "https://raw.githubusercontent.com/Effect-TS/language-service/refs/heads/main/schema.json",
13
+ "$schema": "./node_modules/@effect/language-service/schema.json",
14
+ // or from Github (may drift from your local installation)
15
+ // "$schema": ""https://raw.githubusercontent.com/Effect-TS/language-service/refs/heads/main/schema.json",
14
16
  "compilerOptions": {
15
17
  "plugins": [
16
18
  // ... other LSPs (if any) and as last
@@ -54,6 +56,7 @@ Some diagnostics are off by default or have a default severity of suggestion, bu
54
56
  <tr><td><code>anyUnknownInErrorContext</code></td><td>➖</td><td></td><td>Detects 'any' or 'unknown' types in Effect error or requirements channels</td><td>✓</td><td>✓</td></tr>
55
57
  <tr><td><code>classSelfMismatch</code></td><td>❌</td><td>🔧</td><td>Ensures Self type parameter matches the class name in Service/Tag/Schema classes</td><td>✓</td><td>✓</td></tr>
56
58
  <tr><td><code>duplicatePackage</code></td><td>⚠️</td><td></td><td>Detects when multiple versions of the same Effect package are loaded</td><td>✓</td><td>✓</td></tr>
59
+ <tr><td><code>effectFnImplicitAny</code></td><td>❌</td><td></td><td>Mirrors noImplicitAny for unannotated Effect.fn and Effect.fnUntraced callback parameters when no outer contextual function type exists</td><td>✓</td><td>✓</td></tr>
57
60
  <tr><td><code>floatingEffect</code></td><td>❌</td><td></td><td>Ensures Effects are yielded or assigned to variables, not left floating</td><td>✓</td><td>✓</td></tr>
58
61
  <tr><td><code>genericEffectServices</code></td><td>⚠️</td><td></td><td>Prevents services with type parameters that cannot be discriminated at runtime</td><td>✓</td><td>✓</td></tr>
59
62
  <tr><td><code>missingEffectContext</code></td><td>❌</td><td></td><td>Reports missing service requirements in Effect context channel</td><td>✓</td><td>✓</td></tr>
@@ -246,6 +249,9 @@ The effect language service plugin comes with a builtin CLI tool that can be use
246
249
  ### `effect-language-service setup`
247
250
  Runs through a wizard to setup/update some basic functionalities of the LSP in an interactive way. This also keeps the `tsconfig.json` `$schema` aligned with the published Effect Language Service schema.
248
251
 
252
+ ### `effect-language-service config`
253
+ After selecting a tsconfig.json file, jumps to the interactive configuration of rules severities.
254
+
249
255
  ### `effect-language-service codegen`
250
256
  Automatically updates Effect codegens in your TypeScript files. This command scans files for `@effect-codegens` directives and applies the necessary code transformations. Use `--file` to update a specific file, or `--project` with a tsconfig file to update an entire project. The `--verbose` flag provides detailed output about which files are being processed and updated.
251
257