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
6
6
7
7
The following patterns are considered warnings:
8
8
9
- ``` js
9
+ ``` jsx
10
10
var HelloJohn = < Hello name= " John" >< / Hello> ;
11
11
```
12
12
13
13
The following patterns are not considered warnings:
14
14
15
- ``` js
15
+ ``` jsx
16
16
var contentContainer = < div className= " content" >< / div> ;
17
17
18
18
var intentionalSpace = < div> {' ' }< / div> ;
@@ -43,15 +43,17 @@ When `true`, custom components tags should be self-closed.
43
43
44
44
The following patterns are considered warnings:
45
45
46
- ``` js
46
+ ``` jsx
47
47
var HelloJohn = < Hello name= " John" >< / Hello> ;
48
48
```
49
49
50
50
The following patterns are not considered warnings:
51
51
52
- ``` js
52
+ ``` jsx
53
53
var contentContainer = < div className= " content" >< / div> ;
54
54
55
+ var intentionalSpace = < div> {' ' }< / div> ;
56
+
55
57
var HelloJohn = < Hello name= " John" / > ;
56
58
57
59
var Profile = < Hello name= " John" >< img src= " picture.png" / >< / Hello> ;
@@ -63,14 +65,16 @@ When `true`, html components tags should be self-closed.
63
65
64
66
The following patterns are considered warnings:
65
67
66
- ``` js
68
+ ``` jsx
67
69
var contentContainer = < div className= " content" >< / div> ;
68
70
```
69
71
70
72
The following patterns are not considered warnings:
71
73
72
- ``` js
74
+ ``` jsx
73
75
var contentContainer = < div className= " content" / > ;
74
76
75
77
var contentContainer = < div className= " content" >< div / >< / div> ;
78
+
79
+ var intentionalSpace = < div> {' ' }< / div> ;
76
80
```
You can’t perform that action at this time.
0 commit comments