diff --git a/eslint.config.mjs b/eslint.config.mjs index 84b836f4480..bab0e44b63e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -7,6 +7,7 @@ export default [ "ember/no-classic-classes": "error", "discourse/i18n-import-location": "error", "discourse/i18n-t": "error", + "discourse/discourse-common-imports": "error", "qunit/no-assert-equal-boolean": "error", "qunit/no-assert-equal": "error", "qunit/no-loose-assertions": "error", diff --git a/package.json b/package.json index 45ab38f68c5..27ad0ea0c95 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "license": "GPL-2.0-only", "devDependencies": { "@babel/plugin-proposal-decorators": "^7.25.9", - "@discourse/lint-configs": "^2.2.3", + "@discourse/lint-configs": "^2.3.0", "@discourse/moment-timezone-names-translations": "^1.0.0", "@fortawesome/fontawesome-free": "6.6.0", "@glint/core": "^1.5.1", diff --git a/plugins/chat/assets/javascripts/discourse/components/channel-icon/index.gjs b/plugins/chat/assets/javascripts/discourse/components/channel-icon/index.gjs index a115ccd2bc4..72135f8f99d 100644 --- a/plugins/chat/assets/javascripts/discourse/components/channel-icon/index.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/channel-icon/index.gjs @@ -1,6 +1,6 @@ import Component from "@glimmer/component"; import { htmlSafe } from "@ember/template"; -import icon from "discourse-common/helpers/d-icon"; +import icon from "discourse/helpers/d-icon"; import ChatUserAvatar from "discourse/plugins/chat/discourse/components/chat-user-avatar"; export default class ChatChannelIcon extends Component { diff --git a/plugins/chat/assets/javascripts/discourse/components/channels-list-direct.gjs b/plugins/chat/assets/javascripts/discourse/components/channels-list-direct.gjs index 4292b5b8e92..e6b91c0bd4a 100644 --- a/plugins/chat/assets/javascripts/discourse/components/channels-list-direct.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/channels-list-direct.gjs @@ -7,7 +7,7 @@ import { and, not, or } from "truth-helpers"; import DButton from "discourse/components/d-button"; import PluginOutlet from "discourse/components/plugin-outlet"; import concatClass from "discourse/helpers/concat-class"; -import dIcon from "discourse-common/helpers/d-icon"; +import dIcon from "discourse/helpers/d-icon"; import { i18n } from "discourse-i18n"; import ChatModalNewMessage from "discourse/plugins/chat/discourse/components/chat/modal/new-message"; import EmptyChannelsList from "discourse/plugins/chat/discourse/components/empty-channels-list"; diff --git a/plugins/chat/assets/javascripts/discourse/components/channels-list-public.gjs b/plugins/chat/assets/javascripts/discourse/components/channels-list-public.gjs index f2886e3d3e0..1c65b077eec 100644 --- a/plugins/chat/assets/javascripts/discourse/components/channels-list-public.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/channels-list-public.gjs @@ -7,7 +7,7 @@ import { service } from "@ember/service"; import { and } from "truth-helpers"; import PluginOutlet from "discourse/components/plugin-outlet"; import concatClass from "discourse/helpers/concat-class"; -import dIcon from "discourse-common/helpers/d-icon"; +import dIcon from "discourse/helpers/d-icon"; import { i18n } from "discourse-i18n"; import EmptyChannelsList from "discourse/plugins/chat/discourse/components/empty-channels-list"; import ChatChannelRow from "./chat-channel-row"; diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel-card.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel-card.gjs index a0d2c512bb7..26a1d6b2b20 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-card.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-card.gjs @@ -5,8 +5,8 @@ import { service } from "@ember/service"; import { gt } from "truth-helpers"; import borderColor from "discourse/helpers/border-color"; import concatClass from "discourse/helpers/concat-class"; +import dIcon from "discourse/helpers/d-icon"; import replaceEmoji from "discourse/helpers/replace-emoji"; -import dIcon from "discourse-common/helpers/d-icon"; import { i18n } from "discourse-i18n"; import ToggleChannelMembershipButton from "./toggle-channel-membership-button"; diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs index d022011b762..38c2f5b211f 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs @@ -10,10 +10,10 @@ import { htmlSafe } from "@ember/template"; import { modifier as modifierFn } from "ember-modifier"; import { and, eq } from "truth-helpers"; import concatClass from "discourse/helpers/concat-class"; +import icon from "discourse/helpers/d-icon"; import replaceEmoji from "discourse/helpers/replace-emoji"; import { popupAjaxError } from "discourse/lib/ajax-error"; import { bind } from "discourse/lib/decorators"; -import icon from "discourse-common/helpers/d-icon"; import { i18n } from "discourse-i18n"; import ChannelIcon from "discourse/plugins/chat/discourse/components/channel-icon"; import ChannelName from "discourse/plugins/chat/discourse/components/channel-name"; diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel-status.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel-status.gjs index 2c2cfb61613..067e7198f9f 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-status.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-status.gjs @@ -1,5 +1,5 @@ import Component from "@glimmer/component"; -import dIcon from "discourse-common/helpers/d-icon"; +import dIcon from "discourse/helpers/d-icon"; import { i18n } from "discourse-i18n"; import { CHANNEL_STATUSES, diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer-message-details.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-composer-message-details.gjs index 910ad7766b4..62bdd883840 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-composer-message-details.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer-message-details.gjs @@ -1,7 +1,7 @@ import { htmlSafe } from "@ember/template"; import DButton from "discourse/components/d-button"; +import dIcon from "discourse/helpers/d-icon"; import replaceEmoji from "discourse/helpers/replace-emoji"; -import dIcon from "discourse-common/helpers/d-icon"; import ChatUserAvatar from "./chat-user-avatar"; const ChatComposerMessageDetails =