47 lines
1.1 KiB
Markdown
47 lines
1.1 KiB
Markdown
---
|
|
name: ✨ Formatting
|
|
about: Issues for ugly or incorrect code
|
|
---
|
|
|
|
<!--
|
|
|
|
BEFORE SUBMITTING AN ISSUE:
|
|
|
|
1. Search for your issue on GitHub: https://github.com/prettier/prettier/issues
|
|
A large number of opened issues are duplicates of existing issues.
|
|
If someone has already opened an issue for what you are experiencing,
|
|
you do not need to open a new issue — please add a 👍 reaction to the
|
|
existing issue instead.
|
|
|
|
2. We get a lot of requests for adding options, but Prettier is
|
|
built on the principle of being opinionated about code formatting.
|
|
This means we have a very high bar for adding new options.
|
|
Find out more: https://prettier.io/docs/en/option-philosophy.html
|
|
|
|
Tip! Don't write this stuff manually.
|
|
|
|
1. Go to https://prettier.io/playground
|
|
2. Paste your code and set options
|
|
3. Press the "Report issue" button in the lower right
|
|
|
|
-->
|
|
|
|
**Prettier 1.18.2**
|
|
[Playground link](https://prettier.io/playground/#.....)
|
|
```sh
|
|
# Options (if any):
|
|
--single-quote
|
|
```
|
|
|
|
**Input:**
|
|
```jsx
|
|
// code snippet
|
|
```
|
|
|
|
**Output:**
|
|
```jsx
|
|
// code snippet
|
|
```
|
|
|
|
**Expected behavior:**
|