DEV: Use import x rather than import { default as x } (#23496)

This commit is contained in:
Jarek Radosz 2023-09-11 11:32:36 +02:00 committed by GitHub
parent d7bb8f68d6
commit 7b7a59b576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 15 deletions

View File

@ -5,9 +5,8 @@ import UppyUploadMixin from "discourse/mixins/uppy-upload";
import discourseComputed, { on } from "discourse-common/utils/decorators";
import { getURLWithCDN } from "discourse-common/lib/get-url";
import { isEmpty } from "@ember/utils";
import {
import lightbox, {
cleanupLightboxes,
default as lightbox,
setupLightboxes,
} from "discourse/lib/lightbox";
import { next } from "@ember/runloop";

View File

@ -1,6 +1,5 @@
import {
import createPMRoute, {
NEW_FILTER,
default as createPMRoute,
} from "discourse/routes/build-private-messages-route";
export default createPMRoute("user", "private-messages-new", NEW_FILTER);

View File

@ -1,6 +1,5 @@
import {
import createPMRoute, {
UNREAD_FILTER,
default as createPMRoute,
} from "discourse/routes/build-private-messages-route";
export default createPMRoute("user", "private-messages-unread", UNREAD_FILTER);

View File

@ -1,5 +1,4 @@
import {
default as deprecated,
import deprecated, {
withSilencedDeprecations,
withSilencedDeprecationsAsync,
} from "discourse-common/lib/deprecated";

View File

@ -2,7 +2,7 @@ import { module, test } from "qunit";
import { setupRenderingTest } from "ember-qunit";
import { click, doubleClick, render } from "@ember/test-helpers";
import { hbs } from "ember-cli-htmlbars";
import { default as ClassicComponent } from "@ember/component";
import ClassicComponent from "@ember/component";
module("Unit | Lib | ember-action-modifer", function (hooks) {
setupRenderingTest(hooks);

View File

@ -1,13 +1,13 @@
/* eslint-disable ember/require-tagless-components */
/* eslint-disable ember/no-classic-classes */
/* eslint-disable ember/no-classic-components */
import { module, test } from "qunit";
import { setupRenderingTest } from "ember-qunit";
import { click, render } from "@ember/test-helpers";
import { hbs } from "ember-cli-htmlbars";
/* eslint-disable ember/require-tagless-components */
/* eslint-disable ember/no-classic-classes */
/* eslint-disable ember/no-classic-components */
import { default as ClassicComponent } from "@ember/component";
import { default as GlimmerComponent } from "@glimmer/component";
import ClassicComponent from "@ember/component";
import GlimmerComponent from "@glimmer/component";
import { action } from "@ember/object";
// Configure test-local Classic and Glimmer components that