@@ -527,7 +527,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
527
527
'<App foo={function() {' ,
528
528
'\t\t\tconsole.log(\'bar\');' ,
529
529
'\t\t}}' ,
530
- '\t\t />'
530
+ ' />'
531
531
] . join ( '\n' ) ,
532
532
options : [ { location : 'props-aligned' } ] ,
533
533
parserOptions : parserOptions
@@ -607,7 +607,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
607
607
'var x = function() {' ,
608
608
'\treturn <App' ,
609
609
'\t\tfoo' ,
610
- '\t\t\t\t >' ,
610
+ '\t >' ,
611
611
'\t\t\tbar' ,
612
612
'\t </App>' ,
613
613
'}'
@@ -1300,7 +1300,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
1300
1300
options : [ { location : 'props-aligned' } ] ,
1301
1301
parserOptions : parserOptions ,
1302
1302
errors : [ {
1303
- message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 3 , true ) ,
1303
+ message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 2 , true ) ,
1304
1304
line : 2 ,
1305
1305
column : 6
1306
1306
} ]
@@ -1365,7 +1365,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
1365
1365
options : [ { location : 'props-aligned' } ] ,
1366
1366
parserOptions : parserOptions ,
1367
1367
errors : [ {
1368
- message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 3 , false ) ,
1368
+ message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 2 , false ) ,
1369
1369
line : 3 ,
1370
1370
column : 1
1371
1371
} ]
@@ -1439,13 +1439,13 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
1439
1439
] . join ( '\n' ) ,
1440
1440
output : [
1441
1441
'<App' ,
1442
- ' foo ' ,
1443
- ' ></App>'
1442
+ '\tfoo ' ,
1443
+ '\t ></App>'
1444
1444
] . join ( '\n' ) ,
1445
1445
options : [ { location : 'props-aligned' } ] ,
1446
1446
parserOptions : parserOptions ,
1447
1447
errors : [ {
1448
- message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 3 , false ) ,
1448
+ message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 2 , false ) ,
1449
1449
line : 3 ,
1450
1450
column : 1
1451
1451
} ]
@@ -1470,7 +1470,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
1470
1470
] . join ( '\n' ) ,
1471
1471
output : [
1472
1472
'<App' ,
1473
- ' foo ' ,
1473
+ '\tfoo ' ,
1474
1474
'></App>'
1475
1475
] . join ( '\n' ) ,
1476
1476
options : [ { location : 'tag-aligned' } ] ,
@@ -1551,7 +1551,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
1551
1551
options : [ 'props-aligned' ] ,
1552
1552
parserOptions : parserOptions ,
1553
1553
errors : [ {
1554
- message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 7 , false ) ,
1554
+ message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 4 , false ) ,
1555
1555
line : 6 ,
1556
1556
column : 19
1557
1557
} ]
@@ -1583,7 +1583,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
1583
1583
options : [ 'tag-aligned' ] ,
1584
1584
parserOptions : parserOptions ,
1585
1585
errors : [ {
1586
- message : messageWithDetails ( MESSAGE_TAG_ALIGNED , 5 , false ) ,
1586
+ message : messageWithDetails ( MESSAGE_TAG_ALIGNED , 3 , false ) ,
1587
1587
line : 6 ,
1588
1588
column : 19
1589
1589
} ]
@@ -1615,7 +1615,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
1615
1615
options : [ 'line-aligned' ] ,
1616
1616
parserOptions : parserOptions ,
1617
1617
errors : [ {
1618
- message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 5 , false ) ,
1618
+ message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 3 , false ) ,
1619
1619
line : 6 ,
1620
1620
column : 19
1621
1621
} ]
@@ -1641,7 +1641,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
1641
1641
options : [ { nonEmpty : 'props-aligned' } ] ,
1642
1642
parserOptions : parserOptions ,
1643
1643
errors : [ {
1644
- message : messageWithDetails ( MESSAGE_TAG_ALIGNED , 3 , false ) ,
1644
+ message : messageWithDetails ( MESSAGE_TAG_ALIGNED , 2 , false ) ,
1645
1645
line : 6 ,
1646
1646
column : 3
1647
1647
} ]
@@ -1688,7 +1688,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
1688
1688
options : [ { nonEmpty : 'after-props' } ] ,
1689
1689
parserOptions : parserOptions ,
1690
1690
errors : [ {
1691
- message : messageWithDetails ( MESSAGE_TAG_ALIGNED , 3 , false ) ,
1691
+ message : messageWithDetails ( MESSAGE_TAG_ALIGNED , 2 , false ) ,
1692
1692
line : 5 ,
1693
1693
column : 3
1694
1694
} ]
@@ -1710,7 +1710,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
1710
1710
options : [ { location : 'line-aligned' } ] ,
1711
1711
parserOptions : parserOptions ,
1712
1712
errors : [ {
1713
- message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 3 , false ) ,
1713
+ message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 2 , false ) ,
1714
1714
line : 4 ,
1715
1715
column : 6
1716
1716
} ]
@@ -1751,7 +1751,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
1751
1751
options : [ { location : 'line-aligned' } ] ,
1752
1752
parserOptions : parserOptions ,
1753
1753
errors : [ {
1754
- message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 3 , true ) ,
1754
+ message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 2 , true ) ,
1755
1755
line : 4 ,
1756
1756
column : 14
1757
1757
} ]
@@ -1772,7 +1772,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
1772
1772
options : [ { location : 'line-aligned' } ] ,
1773
1773
parserOptions : parserOptions ,
1774
1774
errors : [ {
1775
- message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 3 , true ) ,
1775
+ message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 2 , true ) ,
1776
1776
line : 3 ,
1777
1777
column : 21
1778
1778
} ]
0 commit comments