prettier/prettier
### [`v2.0.5`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#205)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.0.4...2.0.5)
[diff](https://togithub.com/prettier/prettier/compare/2.0.4...2.0.5)
##### Less: Fix formatting of `:extend` ([#7984](https://togithub.com/prettier/prettier/pull/7984) by [@fisker](https://togithub.com/fisker))
```less
// 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`](https://www.npmjs.com/package/resolve) if builtin `require.resolve` is overridden ([#8072](https://togithub.com/prettier/prettier/pull/8072) by [@fisker](https://togithub.com/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`.
Renovate configuration
:date: Schedule: "after 9pm every weekday,before 5pm every weekday" in timezone Europe/Madrid.
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
2.0.4
->2.0.5
Release Notes
prettier/prettier
### [`v2.0.5`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#205) [Compare Source](https://togithub.com/prettier/prettier/compare/2.0.4...2.0.5) [diff](https://togithub.com/prettier/prettier/compare/2.0.4...2.0.5) ##### Less: Fix formatting of `:extend` ([#7984](https://togithub.com/prettier/prettier/pull/7984) by [@fisker](https://togithub.com/fisker)) ```less // 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`](https://www.npmjs.com/package/resolve) if builtin `require.resolve` is overridden ([#8072](https://togithub.com/prettier/prettier/pull/8072) by [@fisker](https://togithub.com/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`.Renovate configuration
:date: Schedule: "after 9pm every weekday,before 5pm every weekday" in timezone Europe/Madrid.
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.