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 8e1c8b8 commit f0af7c8Copy full SHA for f0af7c8
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "eslint-plugin-vue-data-testid",
3
- "version": "1.1.1",
+ "version": "1.1.2",
4
"description": "An ESLint plugin to enforce consistent usage of 'data-testid' attributes in Vue.js components for better testability",
5
"main": "lib/index.js",
6
"scripts": {
src/rules/tag-element.js
@@ -40,7 +40,7 @@ module.exports = {
40
if (testableTagNames.includes(tag)) {
41
const dataTestId = node.startTag.attributes.find(
42
(attr) => {
43
- if (attr.directive) {
+ if (attr.directive && attr.key.argument && attr.key.argument.name) {
44
return attr.key.argument.name === dataTestIdAttribute
45
} else {
46
return attr.key.name === dataTestIdAttribute
0 commit comments