deterministicKeys

August 4, 2026 ยท View on GitHub

Enforces deterministic naming for service/tag/error identifiers based on class names

PropertyValue
CategoryStyle
Default severityoff
FixableYes
Effect versionsv3, v4
Diagnostic codesTS377049
Language Service namedeterministicKeys
Oxlint nameeffecttsgo/deterministic-keys

Preview

import { Context } from "effect"

export class RenamedService
  extends Context.Service<RenamedService, {}>()("CustomIdentifier") {}
/**
                                                ^^^^^^^^^^^^^^^^^^ effecttsgo(deterministic-keys): This key does not match the deterministic key for this declaration. The expected key is `effect-v4-tests/preview/RenamedService`.
*/

Language Service Configuration

See the Language Service setup guide for installation instructions.

{
  "$schema": "./node_modules/@effect/tsgo/schema.json",
  "compilerOptions": {
    "plugins": [
      {
        "name": "@effect/language-service",
        "diagnosticSeverity": {
          "deterministicKeys": "warning"
        }
      }
    ]
  }
}

Oxlint Configuration

See the Oxlint setup guide for installation and patching instructions.

{
  "$schema": "./node_modules/@effect/tsgo/oxlint-schema.json",
  "options": {
    "typeAware": true
  },
  "plugins": ["effecttsgo"],
  "rules": {
    "effecttsgo/deterministic-keys": "warn"
  }
}