eslint-plugin-sort-imports-es6-autofix
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "eslint-plugin-sort-imports-es6-autofix", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A sort-imports rule that properly distinguishes between ES6 import types.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -100,4 +100,6 @@ /** | ||
function getFirstLocalMemberName(node) { | ||
if (node.specifiers[0]) { | ||
if (node.specifiers.length) { | ||
return node.specifiers[0].local.name; | ||
} else { | ||
return node.source.value; | ||
} | ||
@@ -104,0 +106,0 @@ return null; |
16774
248