Skip to content

Commit 54757d4

Browse files
committed
lint: fix test-case-property-ordering on 3 tabpanel-config test cases
Move 'output' before 'options' to match the eslint-plugin/test-case- property-ordering rule's [code, output, options, errors] sequence. No behavioral change.
1 parent 8922318 commit 54757d4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/audit/no-noninteractive-tabindex/peer-parity.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ ruleTester.run('audit:no-noninteractive-tabindex (gts)', rule, {
124124
// default `['tabpanel']`.
125125
{
126126
code: '<template><div role="tabpanel" tabindex="0"></div></template>',
127-
options: [{ roles: [] }],
128127
output: null,
128+
options: [{ roles: [] }],
129129
errors: [{ messageId: 'noNonInteractiveTabindex' }],
130130
},
131131

@@ -191,8 +191,8 @@ hbsRuleTester.run('audit:no-noninteractive-tabindex (hbs)', rule, {
191191
// `['tabpanel']`, matching jsx-a11y strict.
192192
{
193193
code: '<div role="tabpanel" tabindex="0"></div>',
194-
options: [{ roles: [] }],
195194
output: null,
195+
options: [{ roles: [] }],
196196
errors: [{ messageId: 'noNonInteractiveTabindex' }],
197197
},
198198
],

tests/lib/rules/template-no-noninteractive-tabindex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ ruleTester.run('template-no-noninteractive-tabindex', rule, {
102102
// the default so `role="tabpanel"` is no longer exempted.
103103
{
104104
code: '<template><div role="tabpanel" tabindex="0"></div></template>',
105-
options: [{ roles: [] }],
106105
output: null,
106+
options: [{ roles: [] }],
107107
errors: [{ messageId: 'noNonInteractiveTabindex' }],
108108
},
109109
// <a> without href isn't interactive.

0 commit comments

Comments
 (0)