Skip to content

Commit

Permalink
chore: prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
maddhruv committed Feb 18, 2020
1 parent 09aa541 commit 550f377
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/rules/require-data-selectors.js
Expand Up @@ -39,7 +39,8 @@ function isCallingCyGet (node) {

function isDataArgument (node) {
return node.arguments.length > 0 &&
((node.arguments[0].type === 'Literal' && String(node.arguments[0].value).startsWith('[data-')) ||
(node.arguments[0].type === 'TemplateLiteral' && String(node.arguments[0].quasis[0].value.cooked).startsWith('[data-'))
(
(node.arguments[0].type === 'Literal' && String(node.arguments[0].value).startsWith('[data-')) ||
(node.arguments[0].type === 'TemplateLiteral' && String(node.arguments[0].quasis[0].value.cooked).startsWith('[data-'))
)
}

0 comments on commit 550f377

Please sign in to comment.