HF RL Explorer

Prettier moves IIFE comments outside parentheses, breaking JSDoc type annotations

Prettier moves IIFE comments outside parentheses, breaking JSDoc type annotations: a task in LegoFlow-SWE (Harbor dataset). When an immediately invoked function expression (IIFE) contains a function with leading or trailing comments inside the outer parentheses, Prettier incorrectly moves those…

The task

When an immediately invoked function expression (IIFE) contains a function with leading or trailing comments inside the outer parentheses, Prettier incorrectly moves those comments outside the parentheses during formatting. This breaks JSDoc type annotations that rely on proximity to the function they describe.

Part of Lego-X/LegoFlow-SWE.