File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ Components without children can be self-closed to avoid unnecessary extra closin
66
77The following patterns are considered warnings:
88
9- ``` js
9+ ``` jsx
1010var HelloJohn = < Hello name= " John" >< / Hello> ;
1111```
1212
1313The following patterns are not considered warnings:
1414
15- ``` js
15+ ``` jsx
1616var contentContainer = < div className= " content" >< / div> ;
1717
1818var intentionalSpace = < div> {' ' }< / div> ;
@@ -43,15 +43,17 @@ When `true`, custom components tags should be self-closed.
4343
4444The following patterns are considered warnings:
4545
46- ``` js
46+ ``` jsx
4747var HelloJohn = < Hello name= " John" >< / Hello> ;
4848```
4949
5050The following patterns are not considered warnings:
5151
52- ``` js
52+ ``` jsx
5353var contentContainer = < div className= " content" >< / div> ;
5454
55+ var intentionalSpace = < div> {' ' }< / div> ;
56+
5557var HelloJohn = < Hello name= " John" / > ;
5658
5759var Profile = < Hello name= " John" >< img src= " picture.png" / >< / Hello> ;
@@ -63,14 +65,16 @@ When `true`, html components tags should be self-closed.
6365
6466The following patterns are considered warnings:
6567
66- ``` js
68+ ``` jsx
6769var contentContainer = < div className= " content" >< / div> ;
6870```
6971
7072The following patterns are not considered warnings:
7173
72- ``` js
74+ ``` jsx
7375var contentContainer = < div className= " content" / > ;
7476
7577var contentContainer = < div className= " content" >< div / >< / div> ;
78+
79+ var intentionalSpace = < div> {' ' }< / div> ;
7680```
You can’t perform that action at this time.
0 commit comments