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 09aa541 commit 550f377Copy full SHA for 550f377
lib/rules/require-data-selectors.js
@@ -39,7 +39,8 @@ function isCallingCyGet (node) {
39
40
function isDataArgument (node) {
41
return node.arguments.length > 0 &&
42
- ((node.arguments[0].type === 'Literal' && String(node.arguments[0].value).startsWith('[data-')) ||
43
- (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-')) ||
44
+ (node.arguments[0].type === 'TemplateLiteral' && String(node.arguments[0].quasis[0].value.cooked).startsWith('[data-'))
45
)
46
}
0 commit comments