Ika 2019-01-21 08:33:07 +08:00 committed by GitHub
parent a01e6c75da
commit 106fc36c81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

View File

@ -5,6 +5,7 @@
- [ ] Ive added tests to confirm my change works.
- [ ] (If changing the API or CLI) Ive documented the changes Ive made (in the `docs/` directory)
- [ ] (If not an internal change) Ive added my changes to the `CHANGELOG.unreleased.md` file following the template.
- [ ] Ive read the [contributing guidelines](https://github.com/prettier/prettier/blob/master/CONTRIBUTING.md).
**✨[Try the playground for this PR](https://prettier.io/playground-redirect)✨**

43
CHANGELOG.unreleased.md Normal file
View File

@ -0,0 +1,43 @@
<!--
Format:
- Category: Title ([#PR] by [@user])
Description
```
// Input
Code Sample
// Output (Prettier stable)
Code Sample
// Output (Prettier master)
Code Sample
```
Details:
Description: optional if the `Title` is enough to explain everything.
Examples:
- TypeScript: Correctly handle `//` in TSX ([#5728] by [@JamesHenry])
Previously, putting `//` as a child of a JSX element in TypeScript led to an error
because it was interpreted as a comment. Prettier master fixes this issue.
<!-- prettier-ignore --\>
```js
// Input
const link = <a href="example.com">http://example.com</a>
// Output (Prettier stable)
// Error: Comment location overlaps with node location
// Output (Prettier master)
const link = <a href="example.com">http://example.com</a>;
```
-->