What happened
The recommended configuration enables the correctness and suspicious categories, which report errors. Examples target several ways tests can mislead: no-flake-masking flags retries and raised timeouts in Vitest and Playwright, while no-conditional-expect catches assertions that can be skipped by a branch. no-test-doubles flags replacing dependency behavior, but permits observation-only spies; no-fixed-sleep catches fixed delays and Playwright timed waits such as waitForTimeout and networkidle. strict-msw flags MSW setups that do not treat unhandled requests as errors.
Teams can register Landmines as a plugin and select individual rules, rather than enabling a preset. A separate restriction configuration includes opinionated repository policies for comments, test placement, scripts and exports. Several rules support per-file allowlists with exact violation counts; they also report when a file has fewer violations than allowed, nudging teams to shrink the list. The repository is public and MIT-licensed.
Landmines requires Oxlint 1.81 or later and Node 22.18 or later.
What the archive adds
Landmines is positioned as a companion to anti-slop, a ruleset for type-level patterns.
Why it matters
Teams that rely on mocks or stubs should inspect no-test-doubles before enabling the recommended preset: its definition may flag existing tests that replace dependency behavior.
Limits and uncertainty
The documented checks for no-fixed-sleep and no-unsignaled-poll do not follow sleep or clock reads through helpers imported from another file, so passing lint is not a guarantee that tests avoid those patterns.
Skill to build now
Install with bun add -d oxlint @interfere/landmines, then extend ./node_modules/@interfere/landmines/configs/recommended.json in .oxlintrc.json. If you use MSW 2, set onUnhandledRequest; its onUnhandledFrame setting is ignored.
Reader takeaway
Landmines makes several test-quality hazards lint errors, including retries that mask flakiness, conditional assertions, fixed waits and permissive MSW handling. Before enabling its recommended preset, review no-test-doubles if your tests replace dependency behavior; the checks also do not trace sleep or clock reads through helpers imported from other files.