File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/react-codemod/transforms/utils Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ module.exports = function(j) {
3333 type : 'ImportDeclaration' ,
3434 source : {
3535 type : 'Literal' ,
36- }
36+ } ,
3737 } )
3838 . filter ( declarator => declarator . value . source . value === module )
3939 . size ( ) === 1
@@ -60,8 +60,8 @@ module.exports = function(j) {
6060 path . find ( j . ExportDefaultDeclaration , {
6161 declaration : {
6262 type : 'CallExpression' ,
63- callee : REACT_CREATE_CLASS_MEMBER_EXPRESSION
64- }
63+ callee : REACT_CREATE_CLASS_MEMBER_EXPRESSION ,
64+ } ,
6565 } ) ;
6666
6767 const findReactCreateClassModuleExports = path =>
@@ -124,7 +124,7 @@ module.exports = function(j) {
124124 // Others
125125 const getReactCreateClassSpec = classPath => {
126126 var { value} = classPath ;
127- const spec = ( value . init || value . right || value . declaration ) . arguments [ 0 ] ;
127+ const spec = ( value . init || value . right || value . declaration ) . arguments [ 0 ] ;
128128 if ( spec . type === 'ObjectExpression' && Array . isArray ( spec . properties ) ) {
129129 return spec ;
130130 }
You can’t perform that action at this time.
0 commit comments