HF RL Explorer

Prettier inconsistently formats single extends clause for interfaces compared to classes

Prettier inconsistently formats single extends clause for interfaces compared to classes: a task in LegoFlow-SWE (Harbor dataset). When a class has a single long superclass that forces a line break, Prettier keeps extends on the same line as the class name and wraps only the type name. However…

The task

When a class has a single long superclass that forces a line break, Prettier keeps `extends` on the same line as the class name and wraps only the type name. However, for an **interface** or a **`declare class`** with a single long `extends` clause, Prettier incorrectly places `extends` on its own indented line,…

Part of Lego-X/LegoFlow-SWE.