@@ -649,5 +649,76 @@ new RuleTester({ parserOptions }).run('jsx-newline', rule, {
649
649
] ,
650
650
options : [ { prevent : true , allowMultilines : true } ] ,
651
651
} ,
652
+ {
653
+ code : `
654
+ const frag: DocumentFragment = (
655
+ <Fragment>
656
+ <sni-sequence-editor-tool
657
+ name="forward"
658
+ direction="forward"
659
+ type="control"
660
+ onClick={ () => this.onClickNavigate('forward') }
661
+ />
662
+ <sni-sequence-editor-tool
663
+ name="rotate"
664
+ direction="left"
665
+ type="control"
666
+ onClick={ () => this.onClickNavigate('left') }
667
+ />
668
+
669
+ <sni-sequence-editor-tool
670
+ name="rotate"
671
+ direction="right"
672
+ type="control"
673
+ onClick={ (): void => this.onClickNavigate('right') }
674
+ />
675
+
676
+ <div className="sni-sequence-editor-control-panel__delete" data-name="delete" onClick={ this.onDeleteCommand } />
677
+
678
+ {
679
+ ...Array.from(this.children)
680
+ }
681
+ </Fragment>
682
+ )
683
+ ` ,
684
+ output : `
685
+ const frag: DocumentFragment = (
686
+ <Fragment>
687
+ <sni-sequence-editor-tool
688
+ name="forward"
689
+ direction="forward"
690
+ type="control"
691
+ onClick={ () => this.onClickNavigate('forward') }
692
+ />
693
+
694
+ <sni-sequence-editor-tool
695
+ name="rotate"
696
+ direction="left"
697
+ type="control"
698
+ onClick={ () => this.onClickNavigate('left') }
699
+ />
700
+ ${ ' ' }
701
+ <sni-sequence-editor-tool
702
+ name="rotate"
703
+ direction="right"
704
+ type="control"
705
+ onClick={ (): void => this.onClickNavigate('right') }
706
+ />
707
+
708
+ <div className="sni-sequence-editor-control-panel__delete" data-name="delete" onClick={ this.onDeleteCommand } />
709
+
710
+ {
711
+ ...Array.from(this.children)
712
+ }
713
+ </Fragment>
714
+ )
715
+ ` ,
716
+ features : [ 'types' ] ,
717
+ options : [ { prevent : true , allowMultilines : true } ] ,
718
+ errors : [
719
+ { messageId : 'allowMultilines' , line : 10 } ,
720
+ { messageId : 'prevent' , line : 26 } ,
721
+ ] ,
722
+ } ,
652
723
] ) ,
653
724
} ) ;
0 commit comments