diff --git a/lib/rules/template-names.js b/lib/rules/template-names.js index 713ea92db4..afd726c190 100644 --- a/lib/rules/template-names.js +++ b/lib/rules/template-names.js @@ -36,7 +36,7 @@ const isTemplateMemberExpression = node => ( ) // assuming node type is always either Identifier or Literal -const getNameOfProperty = node => node.type === 'Identifier' ? node.name : node.value +const getNameOfProperty = node => (node.type === 'Identifier' ? node.name : node.value) const getErrorMessage = expected => `Invalid template name, expected name to be in ${expected}`