libraryai codingdev toolsopen source
Oxlint plugins from Interfere that block the shortcuts coding agents take to turn CI green, like mocking the code under test, fixed sleeps and test retries.
Coding agents optimise for green checks. Left alone, they mock the module they are supposed to test, sleep until a race usually passes, retry the flaky test or raise its timeout. All of that passes CI and none of it proves anything. Landmines turns those moves into lint errors, and each error message tells the agent what to do instead, so it fixes the problem in the same loop.
The landmines-testing plugin has five rules: no-test-doubles (use the real implementation and MSW for the network), strict-msw (unhandled requests must fail), no-fixed-sleep, no-unsignaled-poll and no-flake-masking. A separate landmines-style plugin bans prose comments. For an existing codebase, some rules take a per-file allowance with an exact count that can only shrink.
Install it with bun add -d oxlint @interfere/landmines and extend the recommended config in .oxlintrc.json. It needs Oxlint 1.81+ and Node 22.18+, and Ultracite 8.3 ships it as an optional preset.
#testing#agents#typescript