mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Fix array-related linting issues in templates (#22935)
and remove more linting exemptions
This commit is contained in:
@ -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">
|
||||
|
@ -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}}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user