Skip to content

Commit c97a131

Browse files
committed
fix(#32): address round-2 Copilot review (document hash-pair opt-out; reword {{input}} comment)
1 parent c2a4128 commit c97a131

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

docs/rules/template-no-autofocus-attribute.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ only form that statically guarantees no rendered `autofocus` attribute
5050
<template>
5151
<input autofocus={{false}} />
5252
{{!-- element syntax: the mustache-boolean form --}}
53+
54+
{{input autofocus=false}}
55+
{{!-- mustache syntax: the hash-pair form --}}
5356
</template>
5457
```
5558

tests/lib/rules/template-no-autofocus-attribute.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ ruleTester.run('template-no-autofocus-attribute', rule, {
4848
</div>
4949
</dialog>
5050
</template>`,
51-
// Dialog exception also applies to the mustache form of the `<Input>`
52-
// helper (`{{input autofocus=true}}`) — whether direct child or nested.
51+
// Dialog exception also applies to the classic mustache form
52+
// (`{{input autofocus=true}}`) — whether direct child or nested.
5353
`<template>
5454
<dialog>
5555
{{input autofocus=true}}

0 commit comments

Comments
 (0)