@@ -807,11 +807,7 @@ ruleTester.run('function-component-definition', rule, {
807
807
return <div/>;
808
808
}
809
809
` ,
810
- output : `
811
- var Hello: React.FC<Test> = function(props) {
812
- return <div/>;
813
- }
814
- ` ,
810
+ output : null ,
815
811
options : [ { namedComponents : 'function-declaration' } ] ,
816
812
errors : [ { messageId : 'function-declaration' } ] ,
817
813
features : [ 'types' ] ,
@@ -822,11 +818,7 @@ ruleTester.run('function-component-definition', rule, {
822
818
return <div/>;
823
819
};
824
820
` ,
825
- output : `
826
- var Hello: React.FC<Test> = (props) => {
827
- return <div/>;
828
- };
829
- ` ,
821
+ output : null ,
830
822
options : [ { namedComponents : 'function-declaration' } ] ,
831
823
errors : [ { messageId : 'function-declaration' } ] ,
832
824
features : [ 'types' ] ,
@@ -852,11 +844,7 @@ ruleTester.run('function-component-definition', rule, {
852
844
return <div/>;
853
845
}
854
846
` ,
855
- output : `
856
- function Hello<Test>(props: Test) {
857
- return <div/>;
858
- }
859
- ` ,
847
+ output : null ,
860
848
options : [ { namedComponents : 'arrow-function' } ] ,
861
849
errors : [ { messageId : 'arrow-function' } ] ,
862
850
features : [ 'types' ] ,
@@ -963,13 +951,7 @@ ruleTester.run('function-component-definition', rule, {
963
951
}
964
952
}
965
953
` ,
966
- output : `
967
- function wrap(Component) {
968
- return function<Test>(props) {
969
- return <div><Component {...props}/></div>
970
- }
971
- }
972
- ` ,
954
+ output : null ,
973
955
errors : [ { messageId : 'arrow-function' } ] ,
974
956
options : [ { unnamedComponents : 'arrow-function' } ] ,
975
957
features : [ 'types' ] ,
0 commit comments