Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e37a1ed

Browse files
armano2JamesHenry
authored andcommitted
fix(ts-estree): fix issue with nested jsx tag names (typescript-eslint#197)
1 parent 2e5b46e commit e37a1ed

File tree

6 files changed

+736
-141
lines changed

6 files changed

+736
-141
lines changed

packages/parser/tests/lib/__snapshots__/jsx.ts.snap

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9526,7 +9526,6 @@ Object {
95269526
},
95279527
},
95289528
"object": Object {
9529-
"computed": false,
95309529
"loc": Object {
95319530
"end": Object {
95329531
"column": 41,
@@ -9548,11 +9547,12 @@ Object {
95489547
"line": 2,
95499548
},
95509549
},
9550+
"name": "this",
95519551
"range": Array [
95529552
45,
95539553
49,
95549554
],
9555-
"type": "ThisExpression",
9555+
"type": "JSXIdentifier",
95569556
},
95579557
"property": Object {
95589558
"loc": Object {
@@ -9570,13 +9570,13 @@ Object {
95709570
50,
95719571
55,
95729572
],
9573-
"type": "Identifier",
9573+
"type": "JSXIdentifier",
95749574
},
95759575
"range": Array [
95769576
45,
95779577
55,
95789578
],
9579-
"type": "MemberExpression",
9579+
"type": "JSXMemberExpression",
95809580
},
95819581
"property": Object {
95829582
"loc": Object {
@@ -9677,7 +9677,6 @@ Object {
96779677
},
96789678
},
96799679
"object": Object {
9680-
"computed": false,
96819680
"loc": Object {
96829681
"end": Object {
96839682
"column": 13,
@@ -9699,11 +9698,12 @@ Object {
96999698
"line": 2,
97009699
},
97019700
},
9701+
"name": "this",
97029702
"range": Array [
97039703
17,
97049704
21,
97059705
],
9706-
"type": "ThisExpression",
9706+
"type": "JSXIdentifier",
97079707
},
97089708
"property": Object {
97099709
"loc": Object {
@@ -9721,13 +9721,13 @@ Object {
97219721
22,
97229722
27,
97239723
],
9724-
"type": "Identifier",
9724+
"type": "JSXIdentifier",
97259725
},
97269726
"range": Array [
97279727
17,
97289728
27,
97299729
],
9730-
"type": "MemberExpression",
9730+
"type": "JSXMemberExpression",
97319731
},
97329732
"property": Object {
97339733
"loc": Object {
@@ -9846,7 +9846,6 @@ Object {
98469846
},
98479847
},
98489848
"object": Object {
9849-
"computed": false,
98509849
"loc": Object {
98519850
"end": Object {
98529851
"column": 9,
@@ -9858,7 +9857,6 @@ Object {
98589857
},
98599858
},
98609859
"object": Object {
9861-
"computed": false,
98629860
"loc": Object {
98639861
"end": Object {
98649862
"column": 7,
@@ -9870,7 +9868,6 @@ Object {
98709868
},
98719869
},
98729870
"object": Object {
9873-
"computed": false,
98749871
"loc": Object {
98759872
"end": Object {
98769873
"column": 5,
@@ -9897,7 +9894,7 @@ Object {
98979894
74,
98989895
75,
98999896
],
9900-
"type": "Identifier",
9897+
"type": "JSXIdentifier",
99019898
},
99029899
"property": Object {
99039900
"loc": Object {
@@ -9915,13 +9912,13 @@ Object {
99159912
76,
99169913
77,
99179914
],
9918-
"type": "Identifier",
9915+
"type": "JSXIdentifier",
99199916
},
99209917
"range": Array [
99219918
74,
99229919
77,
99239920
],
9924-
"type": "MemberExpression",
9921+
"type": "JSXMemberExpression",
99259922
},
99269923
"property": Object {
99279924
"loc": Object {
@@ -9939,13 +9936,13 @@ Object {
99399936
78,
99409937
79,
99419938
],
9942-
"type": "Identifier",
9939+
"type": "JSXIdentifier",
99439940
},
99449941
"range": Array [
99459942
74,
99469943
79,
99479944
],
9948-
"type": "MemberExpression",
9945+
"type": "JSXMemberExpression",
99499946
},
99509947
"property": Object {
99519948
"loc": Object {
@@ -9963,13 +9960,13 @@ Object {
99639960
80,
99649961
81,
99659962
],
9966-
"type": "Identifier",
9963+
"type": "JSXIdentifier",
99679964
},
99689965
"range": Array [
99699966
74,
99709967
81,
99719968
],
9972-
"type": "MemberExpression",
9969+
"type": "JSXMemberExpression",
99739970
},
99749971
"property": Object {
99759972
"loc": Object {
@@ -10070,7 +10067,6 @@ Object {
1007010067
},
1007110068
},
1007210069
"object": Object {
10073-
"computed": false,
1007410070
"loc": Object {
1007510071
"end": Object {
1007610072
"column": 8,
@@ -10082,7 +10078,6 @@ Object {
1008210078
},
1008310079
},
1008410080
"object": Object {
10085-
"computed": false,
1008610081
"loc": Object {
1008710082
"end": Object {
1008810083
"column": 6,
@@ -10094,7 +10089,6 @@ Object {
1009410089
},
1009510090
},
1009610091
"object": Object {
10097-
"computed": false,
1009810092
"loc": Object {
1009910093
"end": Object {
1010010094
"column": 4,
@@ -10121,7 +10115,7 @@ Object {
1012110115
1,
1012210116
2,
1012310117
],
10124-
"type": "Identifier",
10118+
"type": "JSXIdentifier",
1012510119
},
1012610120
"property": Object {
1012710121
"loc": Object {
@@ -10139,13 +10133,13 @@ Object {
1013910133
3,
1014010134
4,
1014110135
],
10142-
"type": "Identifier",
10136+
"type": "JSXIdentifier",
1014310137
},
1014410138
"range": Array [
1014510139
1,
1014610140
4,
1014710141
],
10148-
"type": "MemberExpression",
10142+
"type": "JSXMemberExpression",
1014910143
},
1015010144
"property": Object {
1015110145
"loc": Object {
@@ -10163,13 +10157,13 @@ Object {
1016310157
5,
1016410158
6,
1016510159
],
10166-
"type": "Identifier",
10160+
"type": "JSXIdentifier",
1016710161
},
1016810162
"range": Array [
1016910163
1,
1017010164
6,
1017110165
],
10172-
"type": "MemberExpression",
10166+
"type": "JSXMemberExpression",
1017310167
},
1017410168
"property": Object {
1017510169
"loc": Object {
@@ -10187,13 +10181,13 @@ Object {
1018710181
7,
1018810182
8,
1018910183
],
10190-
"type": "Identifier",
10184+
"type": "JSXIdentifier",
1019110185
},
1019210186
"range": Array [
1019310187
1,
1019410188
8,
1019510189
],
10196-
"type": "MemberExpression",
10190+
"type": "JSXMemberExpression",
1019710191
},
1019810192
"property": Object {
1019910193
"loc": Object {

0 commit comments

Comments
 (0)