chore(tools): ban as any via eslint and fix existing usages#39709
chore(tools): ban as any via eslint and fix existing usages#39709pavelfeldman merged 1 commit intomicrosoft:mainfrom
as any via eslint and fix existing usages#39709Conversation
Add no-restricted-syntax rule targeting TSAsExpression > TSAnyKeyword to prevent accidental casts to client interfaces. Replace `as any` with precise types where possible; add eslint-disable comments with justification where unavoidable.
a215c8e to
1436311
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Test results for "MCP"5339 passed, 186 skipped Merge workflow run. |
Test results for "tests 1"11 failed 6 flaky38764 passed, 847 skipped Merge workflow run. |
Summary
no-restricted-syntaxESLint rule targetingas anycasts in tools code to prevent accidental casting to client interfacesas anywith precise types where possible (e.g.Parameters<playwright.Frame['getByRole']>[0], zod issue discriminated union)eslint-disablecomments with justification for remaining unavoidableas anyusagessanitizeUnicode, tightencallToolsignature, remove dead code insessionLog🤖 Generated with Claude Code