@samitouri / QOS-React-2 / commits / f53b960741

react-codemod-lint-fix

Bartosz Kaszubowski committed Aug 15, 2015 at 01:36 UTC f53b9607417005ca4dcc9cffeb8ad711eef3f866
1 file changed +4 -4
packages/react-codemod/transforms/utils/ReactUtils.js
+4 -4
@@ -33,7 +33,7 @@ module.exports = function(j) {
33 type: 'ImportDeclaration',
34 source: {
35 type: 'Literal',
36 - }
36 + },
37 })
38 .filter(declarator => declarator.value.source.value === module)
39 .size() === 1
@@ -60,8 +60,8 @@ module.exports = function(j) {
60 path.find(j.ExportDefaultDeclaration, {
61 declaration: {
62 type: 'CallExpression',
63 - callee: REACT_CREATE_CLASS_MEMBER_EXPRESSION
64 - }
63 + callee: REACT_CREATE_CLASS_MEMBER_EXPRESSION,
64 + },
65 });
66
67 const findReactCreateClassModuleExports = path =>
@@ -124,7 +124,7 @@ module.exports = function(j) {
124 // Others
125 const getReactCreateClassSpec = classPath => {
126 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];
128 if (spec.type === 'ObjectExpression' && Array.isArray(spec.properties)) {
129 return spec;
130 }