@@ -807,11 +807,7 @@ ruleTester.run('function-component-definition', rule, {
807807 return <div/>;
808808 }
809809 ` ,
810- output : `
811- var Hello: React.FC<Test> = function(props) {
812- return <div/>;
813- }
814- ` ,
810+ output : null ,
815811 options : [ { namedComponents : 'function-declaration' } ] ,
816812 errors : [ { messageId : 'function-declaration' } ] ,
817813 features : [ 'types' ] ,
@@ -822,11 +818,7 @@ ruleTester.run('function-component-definition', rule, {
822818 return <div/>;
823819 };
824820 ` ,
825- output : `
826- var Hello: React.FC<Test> = (props) => {
827- return <div/>;
828- };
829- ` ,
821+ output : null ,
830822 options : [ { namedComponents : 'function-declaration' } ] ,
831823 errors : [ { messageId : 'function-declaration' } ] ,
832824 features : [ 'types' ] ,
@@ -852,11 +844,7 @@ ruleTester.run('function-component-definition', rule, {
852844 return <div/>;
853845 }
854846 ` ,
855- output : `
856- function Hello<Test>(props: Test) {
857- return <div/>;
858- }
859- ` ,
847+ output : null ,
860848 options : [ { namedComponents : 'arrow-function' } ] ,
861849 errors : [ { messageId : 'arrow-function' } ] ,
862850 features : [ 'types' ] ,
@@ -963,13 +951,7 @@ ruleTester.run('function-component-definition', rule, {
963951 }
964952 }
965953 ` ,
966- output : `
967- function wrap(Component) {
968- return function<Test>(props) {
969- return <div><Component {...props}/></div>
970- }
971- }
972- ` ,
954+ output : null ,
973955 errors : [ { messageId : 'arrow-function' } ] ,
974956 options : [ { unnamedComponents : 'arrow-function' } ] ,
975957 features : [ 'types' ] ,
0 commit comments