diff --git a/.template-lintrc.js b/.template-lintrc.js
index 2c70a9c5068..b9d2db1b567 100644
--- a/.template-lintrc.js
+++ b/.template-lintrc.js
@@ -5,7 +5,6 @@ module.exports = {
rules: {
"no-action-modifiers": true,
"no-args-paths": true,
- "no-array-prototype-extensions": false,
"no-attrs-in-components": true,
"no-capital-arguments": false, // TODO: we extensively use `args` argument name
"no-curly-component-invocation": {
@@ -22,7 +21,6 @@ module.exports = {
"no-implicit-this": {
allow: ["loading-spinner"],
},
- "no-obscure-array-access": false,
"require-mandatory-role-attributes": false,
"require-media-caption": false,
// Begin prettier compatibility
diff --git a/app/assets/javascripts/admin/addon/components/modal/merge-users-prompt.hbs b/app/assets/javascripts/admin/addon/components/modal/merge-users-prompt.hbs
index 1ef1151795b..b27a379fbb3 100644
--- a/app/assets/javascripts/admin/addon/components/modal/merge-users-prompt.hbs
+++ b/app/assets/javascripts/admin/addon/components/modal/merge-users-prompt.hbs
@@ -23,10 +23,7 @@
<:footer>
- {{replace-emoji (concat ":" emojis.firstObject.code ":")}}
+ {{replace-emoji (concat ":" (get emojis "0.code") ":")}}
{{/each-in}}
diff --git a/app/assets/javascripts/discourse/app/components/sidebar/edit-navigation-menu/categories-modal.hbs b/app/assets/javascripts/discourse/app/components/sidebar/edit-navigation-menu/categories-modal.hbs
index bc0d9fa7a67..ee19297cc42 100644
--- a/app/assets/javascripts/discourse/app/components/sidebar/edit-navigation-menu/categories-modal.hbs
+++ b/app/assets/javascripts/discourse/app/components/sidebar/edit-navigation-menu/categories-modal.hbs
@@ -23,7 +23,7 @@
{{#each this.filteredCategoriesGroupings as |categories|}}
{{/if}}
@@ -18,12 +18,12 @@
{{#if this.multiDm}}
{{this.usernames}}
{{else}}
- {{#let @channel.chatable.users.firstObject as |user|}}
+ {{#let (get @channel.chatable.users "0") as |user|}}
{{user.username}}
{{#if this.showUserStatus}}
{{/if}}
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-emoji-picker.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-emoji-picker.hbs
index f8589e43640..5e6738c3e56 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-emoji-picker.hbs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-emoji-picker.hbs
@@ -109,7 +109,7 @@
width="18"
height="18"
class="emoji"
- src={{emojis.firstObject.url}}
+ src={{get emojis "0.url"}}
/>
{{/if}}
@@ -177,7 +177,7 @@
{{! we always want the first emoji for tabbing}}
- {{#let emojis.firstObject as |emoji|}}
+ {{#let (get emojis "0") as |emoji|}}
![]()
"
- @initialValue={{@dummy.options.0.name}}
+ @initialValue={{get @dummy "options.0.name"}}
as |value|
>
diff --git a/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/dropdowns.hbs b/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/dropdowns.hbs
index ea750997bbe..79307bb7a7c 100644
--- a/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/dropdowns.hbs
+++ b/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/dropdowns.hbs
@@ -1,6 +1,6 @@
"
- @initialValue={{@dummy.options.0.name}}
+ @initialValue={{get @dummy "options.0.name"}}
as |value|
>
"
- @initialValue={{@dummy.categories.0.name}}
+ @initialValue={{get @dummy "categories.0.name"}}
as |value|
>
with a default state"
- @initialValue={{@dummy.options.0.name}}
+ @initialValue={{get @dummy "options.0.name"}}
as |value|
>
clearable"
- @initialValue={{@dummy.options.0.name}}
+ @initialValue={{get @dummy "options.0.name"}}
as |value|
>
"
- @initialValue={{@categories.0.name}}
+ @initialValue={{get @categories "0" "name"}}
as |value|
>
@@ -88,7 +88,7 @@
">