Skip to content

Commit 5c4a5d5

Browse files
committed
fix/require-data-selectors-support-TemplateLiteral
1 parent 6c1d538 commit 5c4a5d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/require-data-selectors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function isCallingCyGet (node) {
3939

4040
function isDataArgument (node) {
4141
return node.arguments.length > 0 &&
42-
node.arguments[0].type === 'Literal' &&
42+
(node.arguments[0].type === 'Literal' || node.arguments[0].type === 'TemplateLiteral') &&
4343
String(node.arguments[0].value).startsWith('[data-')
4444

4545
}

0 commit comments

Comments
 (0)