<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Eslint on Tokenise</title><link>https://tokenise.rosvetic.com/tags/eslint/</link><description>Recent content in Eslint on Tokenise</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Sun, 08 Nov 2026 07:07:00 +0000</lastBuildDate><atom:link href="https://tokenise.rosvetic.com/tags/eslint/index.xml" rel="self" type="application/rss+xml"/><item><title>Make the compiler refuse your agent's type casts: a lint gate and a Zod boundary, built in 15 minutes</title><link>https://tokenise.rosvetic.com/posts/zod-boundary-lint-gate-agent-type-casts/</link><pubDate>Sun, 08 Nov 2026 07:07:00 +0000</pubDate><guid>https://tokenise.rosvetic.com/posts/zod-boundary-lint-gate-agent-type-casts/</guid><description>&lt;p&gt;An agent is asked for a function that fetches an order from an internal API. It writes six tidy lines, the compiler is happy, the tests it wrote pass, and the diff looks like every other diff. The sixth line is &lt;code&gt;return body as Order;&lt;/code&gt;, and that line is a promise the code can&amp;rsquo;t keep. The first time the API returns a quantity as a string, &lt;code&gt;unitCount&lt;/code&gt; quietly returns &lt;code&gt;&amp;quot;023&amp;quot;&lt;/code&gt; instead of &lt;code&gt;5&lt;/code&gt; and the bug surfaces three services later.&lt;/p&gt;</description></item></channel></rss>