Enforces deterministic naming for service/tag/error identifiers based on class names
| Property | Value |
|---|---|
| Category | Style |
| Default severity | off |
| Fixable | Yes |
| Effect versions | v3, v4 |
| Diagnostic codes | TS377049 |
| Language Service name | deterministicKeys |
| Oxlint name | effecttsgo/deterministic-keys |
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`.
*/See the Language Service setup guide for installation instructions.
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"
}
}
{ "$schema": "./node_modules/@effect/tsgo/schema.json", "compilerOptions": { "plugins": [ { "name": "@effect/language-service", "diagnosticSeverity": { "deterministicKeys": "warning" } } ] } }