prettier/prettier
### [`v2.7.1`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#271)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.7.0...2.7.1)
[diff](https://togithub.com/prettier/prettier/compare/2.7.0...2.7.1)
##### Keep useful empty lines in description ([#13013](https://togithub.com/prettier/prettier/pull/13013) by [@chimurai](https://togithub.com/chimurai))
```graphql
```
### [`v2.7.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#Prettier-270)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.6.2...2.7.0)
"""
First line
Second Line
"""
type Person {
name: String
}
### [`v2.6.2`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#262)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.6.1...2.6.2)
[diff](https://togithub.com/prettier/prettier/compare/2.6.1...2.6.2)
##### Fix LESS/SCSS format error ([#12536](https://togithub.com/prettier/prettier/pull/12536) by [@fisker](https://togithub.com/fisker))
```less
// Input
.background-gradient(@cut) {
background: linear-gradient(
to right,
@white 0%,
@white (@cut - 0.01%),
@portal-background @cut,
@portal-background 100%
);
}
// Prettier 2.6.1
TypeError: Cannot read properties of undefined (reading 'endOffset')
// Prettier 2.6.2
.background-gradient(@cut) {
background: linear-gradient(
to right,
@white 0%,
@white (@cut - 0.01%),
@portal-background @cut,
@portal-background 100%
);
}
```
##### Update `meriyah` to fix several bugs ([#12567](https://togithub.com/prettier/prettier/pull/12567) by [@fisker](https://togithub.com/fisker), fixes in [`meriyah`](https://togithub.com/meriyah/meriyah/) by [@3cp](https://togithub.com/3cp))
Fixes bugs when parsing following valid code:
```js
foo(await bar());
```
```js
const regex = /.*/ms;
```
```js
const element =
{/w/.test(s)}
;
```
```js
class A extends B {
#privateMethod() {
super.method();
}
}
```
### [`v2.6.1`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#261)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.6.0...2.6.1)
[diff](https://togithub.com/prettier/prettier/compare/2.6.0...2.6.1)
##### Ignore `loglevel` when printing information ([#12477](https://togithub.com/prettier/prettier/pull/12477) by [@fisker](https://togithub.com/fisker))
```bash
```
Configuration
📅 Schedule: Branch creation - "on the 2nd and 4th day instance on sunday after 9pm" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 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 has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^2.6.0
->^2.7.1
Release Notes
prettier/prettier
### [`v2.7.1`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#271) [Compare Source](https://togithub.com/prettier/prettier/compare/2.7.0...2.7.1) [diff](https://togithub.com/prettier/prettier/compare/2.7.0...2.7.1) ##### Keep useful empty lines in description ([#13013](https://togithub.com/prettier/prettier/pull/13013) by [@chimurai](https://togithub.com/chimurai)) ```graphql ``` ### [`v2.7.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#Prettier-270) [Compare Source](https://togithub.com/prettier/prettier/compare/2.6.2...2.7.0) """ First line Second Line """ type Person { name: String } ### [`v2.6.2`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#262) [Compare Source](https://togithub.com/prettier/prettier/compare/2.6.1...2.6.2) [diff](https://togithub.com/prettier/prettier/compare/2.6.1...2.6.2) ##### Fix LESS/SCSS format error ([#12536](https://togithub.com/prettier/prettier/pull/12536) by [@fisker](https://togithub.com/fisker)) ```less // Input .background-gradient(@cut) { background: linear-gradient( to right, @white 0%, @white (@cut - 0.01%), @portal-background @cut, @portal-background 100% ); } // Prettier 2.6.1 TypeError: Cannot read properties of undefined (reading 'endOffset') // Prettier 2.6.2 .background-gradient(@cut) { background: linear-gradient( to right, @white 0%, @white (@cut - 0.01%), @portal-background @cut, @portal-background 100% ); } ``` ##### Update `meriyah` to fix several bugs ([#12567](https://togithub.com/prettier/prettier/pull/12567) by [@fisker](https://togithub.com/fisker), fixes in [`meriyah`](https://togithub.com/meriyah/meriyah/) by [@3cp](https://togithub.com/3cp)) Fixes bugs when parsing following valid code: ```js foo(await bar()); ``` ```js const regex = /.*/ms; ``` ```js const element ={/w/.test(s)}
; ``` ```js class A extends B { #privateMethod() { super.method(); } } ``` ### [`v2.6.1`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#261) [Compare Source](https://togithub.com/prettier/prettier/compare/2.6.0...2.6.1) [diff](https://togithub.com/prettier/prettier/compare/2.6.0...2.6.1) ##### Ignore `loglevel` when printing information ([#12477](https://togithub.com/prettier/prettier/pull/12477) by [@fisker](https://togithub.com/fisker)) ```bash ```Configuration
📅 Schedule: Branch creation - "on the 2nd and 4th day instance on sunday after 9pm" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.