@@ -44,11 +44,13 @@ ruleTester.run('valid-aria-proptypes', rule, {
44
44
{ code : '<div aria-hidden={!true} />' , parserOptions } ,
45
45
{ code : '<div aria-hidden={!"yes"} />' , parserOptions } ,
46
46
{ code : '<div aria-hidden={foo} />' , parserOptions } ,
47
+ { code : '<div aria-hidden={foo.bar} />' , parserOptions } ,
47
48
48
49
// STRING
49
50
{ code : '<div aria-label="Close" />' , parserOptions } ,
50
51
{ code : '<div aria-label={`Close`} />' , parserOptions } ,
51
52
{ code : '<div aria-label={foo} />' , parserOptions } ,
53
+ { code : '<div aria-label={foo.bar} />' , parserOptions } ,
52
54
53
55
// TRISTATE
54
56
{ code : '<div aria-checked={true} />' , parserOptions } ,
@@ -60,6 +62,7 @@ ruleTester.run('valid-aria-proptypes', rule, {
60
62
{ code : '<div aria-checked={!true} />' , parserOptions } ,
61
63
{ code : '<div aria-checked={!"yes"} />' , parserOptions } ,
62
64
{ code : '<div aria-checked={foo} />' , parserOptions } ,
65
+ { code : '<div aria-checked={foo.bar} />' , parserOptions } ,
63
66
{ code : '<div aria-checked="mixed" />' , parserOptions } ,
64
67
{ code : '<div aria-checked={`mixed`} />' , parserOptions } ,
65
68
@@ -72,6 +75,7 @@ ruleTester.run('valid-aria-proptypes', rule, {
72
75
{ code : '<div aria-level={`123`} />' , parserOptions } ,
73
76
{ code : '<div aria-level="123" />' , parserOptions } ,
74
77
{ code : '<div aria-level={foo} />' , parserOptions } ,
78
+ { code : '<div aria-level={foo.bar} />' , parserOptions } ,
75
79
76
80
// NUMBER
77
81
{ code : '<div aria-valuemax={123} />' , parserOptions } ,
@@ -82,6 +86,7 @@ ruleTester.run('valid-aria-proptypes', rule, {
82
86
{ code : '<div aria-valuemax={`123`} />' , parserOptions } ,
83
87
{ code : '<div aria-valuemax="123" />' , parserOptions } ,
84
88
{ code : '<div aria-valuemax={foo} />' , parserOptions } ,
89
+ { code : '<div aria-valuemax={foo.bar} />' , parserOptions } ,
85
90
86
91
// TOKEN
87
92
{ code : '<div aria-sort="ascending" />' , parserOptions } ,
@@ -97,6 +102,8 @@ ruleTester.run('valid-aria-proptypes', rule, {
97
102
{ code : '<div aria-sort="other" />' , parserOptions } ,
98
103
{ code : '<div aria-sort={"other"} />' , parserOptions } ,
99
104
{ code : '<div aria-sort={`other`} />' , parserOptions } ,
105
+ { code : '<div aria-sort={foo} />' , parserOptions } ,
106
+ { code : '<div aria-sort={foo.bar} />' , parserOptions } ,
100
107
101
108
// TOKENLIST
102
109
{ code : '<div aria-relevant="additions" />' , parserOptions } ,
@@ -111,7 +118,9 @@ ruleTester.run('valid-aria-proptypes', rule, {
111
118
{ code : '<div aria-relevant={`additions removals text`} />' , parserOptions } ,
112
119
{ code : '<div aria-relevant="additions removals text all" />' , parserOptions } ,
113
120
{ code : '<div aria-relevant={"additions removals text all"} />' , parserOptions } ,
114
- { code : '<div aria-relevant={`removals additions text all`} />' , parserOptions }
121
+ { code : '<div aria-relevant={`removals additions text all`} />' , parserOptions } ,
122
+ { code : '<div aria-relevant={foo} />' , parserOptions } ,
123
+ { code : '<div aria-relevant={foo.bar} />' , parserOptions }
115
124
] ,
116
125
invalid : [
117
126
// BOOLEAN
0 commit comments