DEV: Fix array-related linting issues in templates (#22935)

and remove more linting exemptions
This commit is contained in:
Jarek Radosz
2023-08-02 19:43:37 +02:00
committed by GitHub
parent cc7dabe20d
commit c5c786b4ac
10 changed files with 25 additions and 23 deletions

View File

@ -44,7 +44,7 @@
<StyleguideExample
@title="inline-form with <ComboBox>"
@initialValue={{@dummy.options.0.name}}
@initialValue={{get @dummy "options.0.name"}}
as |value|
>
<div class="inline-form">

View File

@ -1,6 +1,6 @@
<StyleguideExample
@title="<ComboBox>"
@initialValue={{@dummy.options.0.name}}
@initialValue={{get @dummy "options.0.name"}}
as |value|
>
<ComboBox
@ -12,7 +12,7 @@
<StyleguideExample
@title="filterable <ComboBox>"
@initialValue={{@dummy.categories.0.name}}
@initialValue={{get @dummy "categories.0.name"}}
as |value|
>
<ComboBox
@ -25,7 +25,7 @@
<StyleguideExample
@title="<ComboBox> with a default state"
@initialValue={{@dummy.options.0.name}}
@initialValue={{get @dummy "options.0.name"}}
as |value|
>
<ComboBox
@ -38,7 +38,7 @@
<StyleguideExample
@title="<ComboBox> clearable"
@initialValue={{@dummy.options.0.name}}
@initialValue={{get @dummy "options.0.name"}}
as |value|
>
<ComboBox
@ -68,7 +68,7 @@
<StyleguideExample
@title="<CategoryChooser>"
@initialValue={{@categories.0.name}}
@initialValue={{get @categories "0" "name"}}
as |value|
>
<CategoryChooser @value={{value}} @onChange={{fn (mut value)}} />
@ -88,7 +88,7 @@
<StyleguideExample @title="<CategoryNotificationsButton>">
<CategoryNotificationsButton
@category={{get @dummy.categories 0}}
@category={{get @dummy "categories.0"}}
@value={{1}}
@onChange={{@dummyAction}}
/>