Stress testing Biome's noFloatingPromises lint rule
Blog post from Vercel
Vercel recently collaborated with the Biome team to enhance the noFloatingPromises lint rule, which aims to identify unhandled Promises that can lead to silent errors in code. To test the robustness of the updated rule, Vercel organized an internal competition to devise complex examples that would challenge the lint rule, emphasizing creativity and collaboration among engineers. The competition highlighted various edge cases, such as using arrays of Promises, Promise-like objects, and JavaScript features like Proxy objects and optional chaining, to showcase how Promises could inadvertently remain unhandled. The Proxy Promise example was deemed the most innovative, demonstrating the complexities of catching such errors in real-world scenarios. This initiative not only improved the lint rule but also reinforced Vercel's commitment to fostering a collaborative culture focused on enhancing developer experiences and supporting open-source projects.