Skip to content

Commit

Permalink
docs: remove nonexistent options (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
devunt authored Aug 1, 2023
1 parent 6fc0b64 commit b269610
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,44 +134,6 @@ Example:
| ------- | --------------------------------- | ------------------------------ |
| `true` | `--svelte-allow-shorthand <bool>` | `svelteAllowShorthand: <bool>` |

### Svelte Self Closing Elements

Whether or not empty elements (such as `div`s) should be self-closed or not.

Example:

<!-- prettier-ignore -->
```html
<!-- svelteSelfCloseElements: "always" -->
<div />

<!-- svelteSelfCloseElements: "never" -->
<div></div>
```

| Default | CLI Override | API Override | |
| --------- | ------------------------------------ | ---------------------------------- | -------- |
| `"never"` | `--svelte-self-close-elements <str>` | `svelteSelfCloseElements: "always" | "never"` |

### Svelte Self Closing Components

Whether or not empty components should be self-closed or not.

Example:

<!-- prettier-ignore -->
```html
<!-- svelteSelfCloseComponents: "always" -->
<Component />

<!-- svelteSelfCloseComponents: "never" -->
<Component></Component>
```

| Default | CLI Override | API Override | |
| ---------- | -------------------------------------- | ------------------------------------ | -------- |
| `"always"` | `--svelte-self-close-components <str>` | `svelteSelfCloseComponents: "always" | "never"` |

### Svelte Bracket New Line

> Deprecated since 2.5.0. Use Prettier 2.4.0 and [bracketSameLine](https://prettier.io/docs/en/options.html#bracket-line) instead.
Expand Down

0 comments on commit b269610

Please sign in to comment.