Skip to content

Commit f0af7c8

Browse files
author
Jairo Suarez
committed
chore: bumping version to 1.1.2
1 parent 8e1c8b8 commit f0af7c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-vue-data-testid",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "An ESLint plugin to enforce consistent usage of 'data-testid' attributes in Vue.js components for better testability",
55
"main": "lib/index.js",
66
"scripts": {

src/rules/tag-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = {
4040
if (testableTagNames.includes(tag)) {
4141
const dataTestId = node.startTag.attributes.find(
4242
(attr) => {
43-
if (attr.directive) {
43+
if (attr.directive && attr.key.argument && attr.key.argument.name) {
4444
return attr.key.argument.name === dataTestIdAttribute
4545
} else {
4646
return attr.key.name === dataTestIdAttribute

0 commit comments

Comments
 (0)