Release 3.7.2
This commit is contained in:
1 parent
514e51afa2
commit
03384c964d
5 files changed
+71
-21
No files matched your search
@@ -1,3 +1,53 @@
|
||||
# 3.7.2
|
||||
|
||||
[diff](https://github.com/prettier/prettier/compare/3.7.1...3.7.2)
|
||||
|
||||
#### JavaScript: Fix string print when switching quotes ([#18351](https://github.com/prettier/prettier/pull/18351) by [@fisker](https://github.com/fisker))
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```jsx
|
||||
// Input
|
||||
console.log("A descriptor\\'s .kind must be \"method\" or \"field\".")
|
||||
|
||||
// Prettier 3.7.1
|
||||
console.log('A descriptor\\'s .kind must be "method" or "field".');
|
||||
|
||||
// Prettier 3.7.2
|
||||
console.log('A descriptor\\\'s .kind must be "method" or "field".');
|
||||
```
|
||||
|
||||
#### JavaScript: Preserve quote for embedded HTML attribute values ([#18352](https://github.com/prettier/prettier/pull/18352) by [@kovsu](https://github.com/kovsu))
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```tsx
|
||||
// Input
|
||||
const html = /* HTML */ ` <div class="${styles.banner}"></div> `;
|
||||
|
||||
// Prettier 3.7.1
|
||||
const html = /* HTML */ ` <div class=${styles.banner}></div> `;
|
||||
|
||||
// Prettier 3.7.2
|
||||
const html = /* HTML */ ` <div class="${styles.banner}"></div> `;
|
||||
```
|
||||
|
||||
#### TypeScript: Fix comment in empty type literal ([#18364](https://github.com/prettier/prettier/pull/18364) by [@fisker](https://github.com/fisker))
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```tsx
|
||||
// Input
|
||||
export type XXX = {
|
||||
// tbd
|
||||
};
|
||||
|
||||
// Prettier 3.7.1
|
||||
export type XXX = { // tbd };
|
||||
|
||||
// Prettier 3.7.2
|
||||
export type XXX = {
|
||||
// tbd
|
||||
};
|
||||
```
|
||||
|
||||
# 3.7.1
|
||||
|
||||
[diff](https://github.com/prettier/prettier/compare/3.7.0...3.7.1)
|
||||
|
||||
Reference in new issue
Block a user