Skip to content

Commit f53b960

Browse files
committed
react-codemod-lint-fix
1 parent b4b028d commit f53b960

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/react-codemod/transforms/utils/ReactUtils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)