diff --git a/app/assets/javascripts/discourse/scripts/activate-account.js b/app/assets/javascripts/discourse/scripts/activate-account.js index 3bebd7b9295..e4a3d07bbe1 100644 --- a/app/assets/javascripts/discourse/scripts/activate-account.js +++ b/app/assets/javascripts/discourse/scripts/activate-account.js @@ -1,3 +1,4 @@ +/* eslint-disable ember/no-global-jquery */ (function () { const $activateButton = $("#activate-account-button"); $activateButton.on("click", function () { diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer.js b/plugins/chat/assets/javascripts/discourse/components/chat-composer.js index 120c8bb9050..4930ce53a20 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-composer.js +++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer.js @@ -5,6 +5,7 @@ import { action } from "@ember/object"; import { cancel, next } from "@ember/runloop"; import { inject as service } from "@ember/service"; import { isPresent } from "@ember/utils"; +import $ from "jquery"; import { emojiSearch, isSkinTonableEmoji } from "pretty-text/emoji"; import { translations } from "pretty-text/emoji/data"; import { Promise } from "rsvp"; diff --git a/plugins/chat/assets/javascripts/discourse/initializers/chat-decorators.js b/plugins/chat/assets/javascripts/discourse/initializers/chat-decorators.js index 6c9f7a7b83a..abfbcdae329 100644 --- a/plugins/chat/assets/javascripts/discourse/initializers/chat-decorators.js +++ b/plugins/chat/assets/javascripts/discourse/initializers/chat-decorators.js @@ -1,3 +1,4 @@ +import $ from "jquery"; import { spinnerHTML } from "discourse/helpers/loading-spinner"; import { decorateGithubOneboxBody } from "discourse/instance-initializers/onebox-decorators"; import { decorateHashtags } from "discourse/lib/hashtag-autocomplete"; diff --git a/plugins/checklist/test/javascripts/lib/checklist-test.js b/plugins/checklist/test/javascripts/lib/checklist-test.js index 057b1f5d506..959c67ffaa6 100644 --- a/plugins/checklist/test/javascripts/lib/checklist-test.js +++ b/plugins/checklist/test/javascripts/lib/checklist-test.js @@ -1,3 +1,4 @@ +import $ from "jquery"; import { test } from "qunit"; import { Promise } from "rsvp"; import { cook } from "discourse/lib/text"; diff --git a/plugins/discourse-details/assets/javascripts/initializers/apply-details.js b/plugins/discourse-details/assets/javascripts/initializers/apply-details.js index 98d48907982..a31c3c7435e 100644 --- a/plugins/discourse-details/assets/javascripts/initializers/apply-details.js +++ b/plugins/discourse-details/assets/javascripts/initializers/apply-details.js @@ -1,3 +1,4 @@ +import $ from "jquery"; import { withPluginApi } from "discourse/lib/plugin-api"; import I18n from "discourse-i18n"; diff --git a/plugins/styleguide/assets/javascripts/discourse/components/styleguide-markdown.js b/plugins/styleguide/assets/javascripts/discourse/components/styleguide-markdown.js index df5b1d8edea..b8e1b95be77 100644 --- a/plugins/styleguide/assets/javascripts/discourse/components/styleguide-markdown.js +++ b/plugins/styleguide/assets/javascripts/discourse/components/styleguide-markdown.js @@ -1,4 +1,5 @@ import Component from "@ember/component"; +import $ from "jquery"; import { cook } from "discourse/lib/text"; export default Component.extend({