@groww-tech/eslint-plugin-internal
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,3 +6,3 @@ function addNewLine(firstBlockEnd, secondBlockStart) { | ||
function isArrowFunction(node) { | ||
return node.type === "VariableDeclaration" && | ||
return node.type === "VariableDeclaration" && node.declarations && node.declarations[0] && node.declarations[0].init && | ||
node.declarations[0].init.type === 'ArrowFunctionExpression'; | ||
@@ -38,3 +38,3 @@ } | ||
fix(fixer) { | ||
return fixer.insertTextAfter(body[i - 1], addNewLine(body[i - 1].loc.end.line), body[i].loc.start.line); | ||
return fixer.insertTextAfter(body[i - 1], addNewLine(body[i - 1].loc.end.line, body[i].loc.start.line)); | ||
} | ||
@@ -41,0 +41,0 @@ }); |
{ | ||
"name": "@groww-tech/eslint-plugin-internal", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "ESLint Plugin with customized rules as per requirement and preferences of devs in Groww.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
14098
336