BlogsVercelLint Rule Stress Testing

Lint Rule Stress Testing

Lint Rule Stress Testing

1
posts
2025

Vercel partnered with Biome to stress test and strengthen their `noFloatingPromises` lint rule. Engineers devised creative test cases involving arrays of Promises, Promise-like objects, structural typing tricks, conditional type aliases, Proxy-based Promises, frozen Promise objects, Promise-returning object members, property getters, type remapping with getters, short-circuit operators, randomized expressions, and optional chaining fallbacks to identify subtle edge cases and ensure robust error handling in asynchronous code.

2025

Stress testing Biome's noFloatingPromises lint rule

9/4/2025

Vercel engineers contributed creative and complex test cases to stress test Biome's `noFloatingPromises` lint rule. These test cases explored various JavaScript and TypeScript language features like Promise-like objects, structural typing, conditional types, Proxies, getters, and logical operators to uncover subtle ways unhandled Promises could be created and missed by linters. This effort aimed to improve the rule's ability to catch silent errors and unpredictable behavior in asynchronous code.