prettier v2.2.1 Release Notes

Release Date: 2020-11-28 // 6 months ago
  • diff

    ๐Ÿ›  Fix formatting for AssignmentExpression with ClassExpression (#9741 by @sosukesuzuki)

    <!-- prettier-ignore -->

    // Input
    module.exports = class A extends B {
      method() {
        console.log("foo");
      }
    };
    
    // Prettier 2.2.0
    module.exports = class A extends (
      B
    ) {
      method() {
        console.log("foo");
      }
    };
    
    // Prettier 2.2.1
    module.exports = class A extends B {
      method() {
        console.log("foo");
      }
    };
    

Previous changes from v2.2.0