@@ -527,7 +527,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
527527 '<App foo={function() {' ,
528528 '\t\t\tconsole.log(\'bar\');' ,
529529 '\t\t}}' ,
530- '\t\t />'
530+ ' />'
531531 ] . join ( '\n' ) ,
532532 options : [ { location : 'props-aligned' } ] ,
533533 parserOptions : parserOptions
@@ -607,7 +607,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
607607 'var x = function() {' ,
608608 '\treturn <App' ,
609609 '\t\tfoo' ,
610- '\t\t\t\t >' ,
610+ '\t >' ,
611611 '\t\t\tbar' ,
612612 '\t </App>' ,
613613 '}'
@@ -1300,7 +1300,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
13001300 options : [ { location : 'props-aligned' } ] ,
13011301 parserOptions : parserOptions ,
13021302 errors : [ {
1303- message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 3 , true ) ,
1303+ message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 2 , true ) ,
13041304 line : 2 ,
13051305 column : 6
13061306 } ]
@@ -1365,7 +1365,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
13651365 options : [ { location : 'props-aligned' } ] ,
13661366 parserOptions : parserOptions ,
13671367 errors : [ {
1368- message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 3 , false ) ,
1368+ message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 2 , false ) ,
13691369 line : 3 ,
13701370 column : 1
13711371 } ]
@@ -1439,13 +1439,13 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
14391439 ] . join ( '\n' ) ,
14401440 output : [
14411441 '<App' ,
1442- ' foo ' ,
1443- ' ></App>'
1442+ '\tfoo ' ,
1443+ '\t ></App>'
14441444 ] . join ( '\n' ) ,
14451445 options : [ { location : 'props-aligned' } ] ,
14461446 parserOptions : parserOptions ,
14471447 errors : [ {
1448- message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 3 , false ) ,
1448+ message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 2 , false ) ,
14491449 line : 3 ,
14501450 column : 1
14511451 } ]
@@ -1470,7 +1470,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
14701470 ] . join ( '\n' ) ,
14711471 output : [
14721472 '<App' ,
1473- ' foo ' ,
1473+ '\tfoo ' ,
14741474 '></App>'
14751475 ] . join ( '\n' ) ,
14761476 options : [ { location : 'tag-aligned' } ] ,
@@ -1551,7 +1551,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
15511551 options : [ 'props-aligned' ] ,
15521552 parserOptions : parserOptions ,
15531553 errors : [ {
1554- message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 7 , false ) ,
1554+ message : messageWithDetails ( MESSAGE_PROPS_ALIGNED , 4 , false ) ,
15551555 line : 6 ,
15561556 column : 19
15571557 } ]
@@ -1583,7 +1583,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
15831583 options : [ 'tag-aligned' ] ,
15841584 parserOptions : parserOptions ,
15851585 errors : [ {
1586- message : messageWithDetails ( MESSAGE_TAG_ALIGNED , 5 , false ) ,
1586+ message : messageWithDetails ( MESSAGE_TAG_ALIGNED , 3 , false ) ,
15871587 line : 6 ,
15881588 column : 19
15891589 } ]
@@ -1615,7 +1615,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
16151615 options : [ 'line-aligned' ] ,
16161616 parserOptions : parserOptions ,
16171617 errors : [ {
1618- message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 5 , false ) ,
1618+ message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 3 , false ) ,
16191619 line : 6 ,
16201620 column : 19
16211621 } ]
@@ -1641,7 +1641,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
16411641 options : [ { nonEmpty : 'props-aligned' } ] ,
16421642 parserOptions : parserOptions ,
16431643 errors : [ {
1644- message : messageWithDetails ( MESSAGE_TAG_ALIGNED , 3 , false ) ,
1644+ message : messageWithDetails ( MESSAGE_TAG_ALIGNED , 2 , false ) ,
16451645 line : 6 ,
16461646 column : 3
16471647 } ]
@@ -1688,7 +1688,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
16881688 options : [ { nonEmpty : 'after-props' } ] ,
16891689 parserOptions : parserOptions ,
16901690 errors : [ {
1691- message : messageWithDetails ( MESSAGE_TAG_ALIGNED , 3 , false ) ,
1691+ message : messageWithDetails ( MESSAGE_TAG_ALIGNED , 2 , false ) ,
16921692 line : 5 ,
16931693 column : 3
16941694 } ]
@@ -1710,7 +1710,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
17101710 options : [ { location : 'line-aligned' } ] ,
17111711 parserOptions : parserOptions ,
17121712 errors : [ {
1713- message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 3 , false ) ,
1713+ message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 2 , false ) ,
17141714 line : 4 ,
17151715 column : 6
17161716 } ]
@@ -1751,7 +1751,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
17511751 options : [ { location : 'line-aligned' } ] ,
17521752 parserOptions : parserOptions ,
17531753 errors : [ {
1754- message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 3 , true ) ,
1754+ message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 2 , true ) ,
17551755 line : 4 ,
17561756 column : 14
17571757 } ]
@@ -1772,7 +1772,7 @@ ruleTester.run('jsx-closing-bracket-location', rule, {
17721772 options : [ { location : 'line-aligned' } ] ,
17731773 parserOptions : parserOptions ,
17741774 errors : [ {
1775- message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 3 , true ) ,
1775+ message : messageWithDetails ( MESSAGE_LINE_ALIGNED , 2 , true ) ,
17761776 line : 3 ,
17771777 column : 21
17781778 } ]
0 commit comments