DEV: Fix "ember/no-global-jquery" lint (#24586)

This commit is contained in:
Jarek Radosz 2023-11-28 10:53:38 +01:00 committed by GitHub
parent 22210a9c15
commit 916e1371b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,4 @@
/* eslint-disable ember/no-global-jquery */
(function () {
const $activateButton = $("#activate-account-button");
$activateButton.on("click", function () {

View File

@ -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";

View File

@ -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";

View File

@ -1,3 +1,4 @@
import $ from "jquery";
import { test } from "qunit";
import { Promise } from "rsvp";
import { cook } from "discourse/lib/text";

View File

@ -1,3 +1,4 @@
import $ from "jquery";
import { withPluginApi } from "discourse/lib/plugin-api";
import I18n from "discourse-i18n";

View File

@ -1,4 +1,5 @@
import Component from "@ember/component";
import $ from "jquery";
import { cook } from "discourse/lib/text";
export default Component.extend({