Merge branch 'main' into next
# Conflicts: # package.json # scripts/release/yarn.lock # src/language-css/parser-postcss.js # src/language-css/printer-postcss.js # src/language-js/print/jsx.js # src/language-json/printer-estree-json.js # website/yarn.lock # yarn.lock
This commit is contained in:
commit
f65768d00a
22 files changed
+726
-29
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#### Fix formatting for comments inside JSX attribute (#14082 with by @fisker)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```jsx
|
||||
// Input
|
||||
function MyFunctionComponent() {
|
||||
<button label=/*old*/"new">button</button>
|
||||
}
|
||||
|
||||
// Prettier stable
|
||||
Error: Comment "old" was not printed. Please report this error!
|
||||
|
||||
// Prettier main
|
||||
function MyFunctionComponent() {
|
||||
<button label=/*old*/ "new">button</button>;
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user