prettier v2.0.5 Release Notes

Release Date: 2020-04-21 // about 4 years ago
  • diff

    Less: Fix formatting of :extend (#7984 by @fisker)

    <!-- prettier-ignore -->

    // Input
    .class {
      &:extend(.some-class .some-other-class .some-very-loooooooooooooong-class all);
    }
    
    // Prettier 2.0.4
    .class {
      &:extend(
        .some-class .some-other-class .some-very-loooooooooooooong-class all
      );
    }
    
    // Prettier 2.0.4 (Second format)
    .class {
      &: extend(
        .some-class .some-other-class .some-very-loooooooooooooong-class all
      );
    }
    
    // Prettier 2.0.5
    .class {
      &:extend(
        .some-class .some-other-class .some-very-loooooooooooooong-class all
      );
    }
    

    📦 Editor integration: Use resolve if builtin require.resolve is overridden (#8072 by @fisker)

    🛠 This fixes issues that the users of Atom and WebStorm faced with 2.0.4.

    Prettier now switches to using the resolve module for resolving configuration files and plugins if it detects that require.resolve isn't Node's builtin function (doesn't support the second argument), which happens in environments like editor extensions. To force the fallback, set the PRETTIER_FALLBACK_RESOLVE environment variable to true.