eslint-plugin-lingui
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -69,3 +69,3 @@ "use strict"; | ||
} | ||
function isValidFunctionCall({ callee }) { | ||
function isValidFunctionCall({ callee, }) { | ||
switch (callee.type) { | ||
@@ -89,2 +89,7 @@ case utils_1.TSESTree.AST_NODE_TYPES.MemberExpression: { | ||
} | ||
case utils_1.TSESTree.AST_NODE_TYPES.CallExpression: { | ||
return ((callee.callee.type === utils_1.TSESTree.AST_NODE_TYPES.MemberExpression || | ||
callee.callee.type === utils_1.TSESTree.AST_NODE_TYPES.Identifier) && | ||
isValidFunctionCall(callee)); | ||
} | ||
default: | ||
@@ -260,3 +265,3 @@ return false; | ||
}, | ||
'TSEnumDeclaration > Literal'(node) { | ||
'TSEnumMember > Literal'(node) { | ||
visited.add(node); | ||
@@ -326,3 +331,3 @@ }, | ||
}, | ||
'TSEnumDeclaration > TemplateLiteral'(node) { | ||
'TSEnumMember > TemplateLiteral'(node) { | ||
visited.add(node); | ||
@@ -329,0 +334,0 @@ }, |
{ | ||
"name": "eslint-plugin-lingui", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "ESLint plugin for Lingui", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
74644
1103