interfere-inc/landmines

landmines is a set of Oxlint plugin rules used by Interfere in production: test-related rules prohibit replacing dependency behavior, fixed-duration sleeps, polling spy state, test retries, and increasing timeouts, while requiring MSW to intercept unmocked network requests; style rules prohibit large explanatory comments; structural rules require test files to be colocated with implementations, consistent naming, and explicit package exports. Some rules support setting allowed counts per file, facilitating gradual tightening in legacy projects.

landmines is a set of Oxlint plugin rules used by Interfere in production: test-related rules prohibit replacing dependency behavior, fixed-duration sleeps, polling spy state, test retries, and increasing timeouts, while requiring MSW to intercept unmocked network requests; style rules prohibit large explanatory comments; structural rules require test files to be colocated with implementations, consistent naming, and explicit package exports. Some rules support setting allowed counts per file, facilitating gradual tightening in legacy projects.

Why it matters Agents often mock the subject under test, increase timeouts, or rerun flaky tests to make CI pass; these rules fail directly and instruct the agent on how to fix the issues.

Stars 138 (+40 / 24h)

Reasoning

  • 40 new stars in 24 hours, ranked #1 on Trendshift for the day (indicating attention only); MIT license
  • Each rule in the README specifies what it blocks and what the fix should be

Usage

  • Run bun add -d oxlint @interfere/landmines, then extend its recommended configuration in .oxlintrc.json, or enable only the required rules

Risks

  • Requires Oxlint 1.81 and Node 22.18 or higher; targets JavaScript / TypeScript only
  • Strong stylistic opinions (e.g., prohibiting most comments, prohibiting return type annotations); review whether the full rule set aligns with your team's conventions before enabling it

Open

Trendshift(GitHub Trending 快照)

Explore the latest AI Radar updates