From f53b9607417005ca4dcc9cffeb8ad711eef3f866 Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Sat, 15 Aug 2015 01:36:44 +0200 Subject: [PATCH] react-codemod-lint-fix --- packages/react-codemod/transforms/utils/ReactUtils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-codemod/transforms/utils/ReactUtils.js b/packages/react-codemod/transforms/utils/ReactUtils.js index a519a0a5ee..b08f5f19b2 100644 --- a/packages/react-codemod/transforms/utils/ReactUtils.js +++ b/packages/react-codemod/transforms/utils/ReactUtils.js @@ -33,7 +33,7 @@ module.exports = function(j) { type: 'ImportDeclaration', source: { type: 'Literal', - } + }, }) .filter(declarator => declarator.value.source.value === module) .size() === 1 @@ -60,8 +60,8 @@ module.exports = function(j) { path.find(j.ExportDefaultDeclaration, { declaration: { type: 'CallExpression', - callee: REACT_CREATE_CLASS_MEMBER_EXPRESSION - } + callee: REACT_CREATE_CLASS_MEMBER_EXPRESSION, + }, }); const findReactCreateClassModuleExports = path => @@ -124,7 +124,7 @@ module.exports = function(j) { // Others const getReactCreateClassSpec = classPath => { var {value} = classPath; - const spec = (value.init || value.right || value.declaration).arguments[0]; + const spec = (value.init || value.right || value.declaration).arguments[0]; if (spec.type === 'ObjectExpression' && Array.isArray(spec.properties)) { return spec; }