no-hallucinated-config-options
ProHallucinated ImportsDisallow unrecognized configuration options for well-known libraries. AI assistants frequently hallucinate option names.
no-hallucinated-config-options
Disallow unrecognized configuration options for well-known libraries. AI assistants frequently hallucinate option names.
Category: Hallucinated Imports | Tier: Pro
Why This Matters
AI often generates configuration options that look right but are not part of the actual API. These phantom options are silently ignored at runtime, leading to code that appears correct but does not behave as intended.
Bad Code
// AI made up config options that don't exist
app.listen(3000, { reuseAddr: true, backlog: 511 });
fetch('/api', { retry: 3, timeout: 5000 });
Good Code
// Use only documented configuration options
app.listen(3000);
const response = await fetch('/api', { signal: AbortSignal.timeout(5000) });
Configuration
This rule has no configuration options. It is enabled by default in lintmyai:recommended.