File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ since: 'v2.3.0'
16
16
17
17
You can choose either two styles for spacing before closing bracket
18
18
19
- - always: ` <SomeComponent /> `
20
- - never: ` <SomeComponent /> `
19
+ - always: ` <div /> `
20
+ - never: ` <div /> `
21
21
22
22
<!-- prettier-ignore-start -->
23
23
<!-- eslint-skip-->
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ since: 'v2.5.0'
16
16
17
17
You can choose either two styles for elements without content.
18
18
19
- - always: ` <div /> `
20
- - never: ` <div ></div > `
19
+ - always: ` <SomeComponent /> `
20
+ - never: ` <SomeComponent ></SomeComponent > `
21
21
22
22
<!-- prettier-ignore-start -->
23
23
<!-- eslint-skip-->
@@ -32,11 +32,17 @@ You can choose either two styles for elements without content.
32
32
<div></div>
33
33
<img />
34
34
<svelte:head />
35
+ <svg><path /></svg>
36
+ <math><msup></msup></math>
37
+ <SomeComponent />
35
38
36
39
<!-- ✗ BAD -->
37
40
<div />
38
41
<div><div /></div>
39
42
<svelte:body></svelte:body>
43
+ <svg><path></path></svg>
44
+ <math><msup /></math>
45
+ <SomeComponent></SomeComponent>
40
46
```
41
47
42
48
<!-- prettier-ignore-end -->
@@ -98,9 +104,9 @@ config object:
98
104
99
105
Every config object option can be set to
100
106
101
- - "always" (` <div /> ` )
102
- - "never" (` <div ></div > ` )
103
- - "ignore" (either ` <div /> ` or ` <div ></div > ` )
107
+ - "always" (` <SomeComponent /> ` )
108
+ - "never" (` <SomeComponent ></SomeComponent > ` )
109
+ - "ignore" (either ` <SomeComponent /> ` or ` <SomeComponent ></SomeComponent > ` )
104
110
105
111
## :rocket : Version
106
112
You can’t perform that action at this time.
0 commit comments