We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c1d538 commit 5c4a5d5Copy full SHA for 5c4a5d5
lib/rules/require-data-selectors.js
@@ -39,7 +39,7 @@ function isCallingCyGet (node) {
39
40
function isDataArgument (node) {
41
return node.arguments.length > 0 &&
42
- node.arguments[0].type === 'Literal' &&
+ (node.arguments[0].type === 'Literal' || node.arguments[0].type === 'TemplateLiteral') &&
43
String(node.arguments[0].value).startsWith('[data-')
44
45
}
0 commit comments