Make it impossible instead of asking nicely:
// eslint.config.mjs
rules: {
'@typescript-eslint/no-explicit-any': 'error',
}Then a rule in .cursor/rules with alwaysApply: true: "Never use any or as any. If a type is unclear, stop and ask. Run npm run lint after changes."
Now the agent sees the lint error itself and has to find the real type. When it truly can't, unknown plus a check is the honest fallback.
And don't be embarrassed; your lead caught it in review, that's what review is for.
"strict": truein tsconfig. mei_lin · edited