Skip to content

Apply natural import order for JS to synchronise the code base with Biome and its configuration #2423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Autocomplete/assets/src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import TomSelect from 'tom-select';
import type { TPluginHash } from 'tom-select/dist/types/contrib/microplugin';
import type {
RecursivePartial,
TomSettings,
TomTemplates,
TomLoadCallback,
TomOption,
TomSettings,
TomTemplates,
} from 'tom-select/dist/types/types';
import type { escape_html } from 'tom-select/dist/types/utils';

Expand Down
8 changes: 4 additions & 4 deletions src/Autocomplete/assets/test/controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

import { Application } from '@hotwired/stimulus';
import { getByTestId, waitFor } from '@testing-library/dom';
import userEvent from '@testing-library/user-event';
import type TomSelect from 'tom-select';
import { vi } from 'vitest';
import createFetchMock from 'vitest-fetch-mock';
import AutocompleteController, {
type AutocompleteConnectOptions,
type AutocompletePreConnectOptions,
} from '../src/controller';
import userEvent from '@testing-library/user-event';
import type TomSelect from 'tom-select';
import createFetchMock from 'vitest-fetch-mock';
import { vi } from 'vitest';

const shortDelay = (ms: number): Promise<void> => new Promise((resolve) => setTimeout(resolve, ms));

Expand Down
2 changes: 1 addition & 1 deletion src/Cropperjs/assets/test/controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*/

import { Application, Controller } from '@hotwired/stimulus';
import { getByTestId, waitFor } from '@testing-library/dom';
import { clearDOM, mountDOM } from '@symfony/stimulus-testing';
import { getByTestId, waitFor } from '@testing-library/dom';
import CropperjsController from '../src/controller';

let cropper: Cropper | null = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Dropzone/assets/test/controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
*/

import { Application, Controller } from '@hotwired/stimulus';
import { clearDOM, mountDOM } from '@symfony/stimulus-testing';
import { getByTestId, waitFor } from '@testing-library/dom';
import user from '@testing-library/user-event';
import { clearDOM, mountDOM } from '@symfony/stimulus-testing';
import DropzoneController from '../src/controller';

// Controller used to check the actual controller was properly booted
Expand Down
2 changes: 1 addition & 1 deletion src/LazyImage/assets/test/controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*/

import { Application, Controller } from '@hotwired/stimulus';
import { getByTestId, waitFor } from '@testing-library/dom';
import { clearDOM, mountDOM } from '@symfony/stimulus-testing';
import { getByTestId, waitFor } from '@testing-library/dom';
import LazyImageController from '../src/controller';

// Controller used to check the actual controller was properly booted
Expand Down
4 changes: 2 additions & 2 deletions src/LiveComponent/assets/dist/Component/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { BackendInterface } from '../Backend/Backend';
import ValueStore from './ValueStore';
import type BackendRequest from '../Backend/BackendRequest';
import BackendResponse from '../Backend/BackendResponse';
import type { ElementDriver } from './ElementDriver';
import ValueStore from './ValueStore';
import type { PluginInterface } from './plugins/PluginInterface';
import BackendResponse from '../Backend/BackendResponse';
type MaybePromise<T = void> = T | Promise<T>;
export type ComponentHooks = {
connect: (component: Component) => MaybePromise;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PluginInterface } from './PluginInterface';
import type Component from '../index';
import type { PluginInterface } from './PluginInterface';
export default class implements PluginInterface {
private intersectionObserver;
attachToComponent(component: Component): void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type Directive } from '../../Directive/directives_parser';
import type BackendRequest from '../../Backend/BackendRequest';
import type Component from '../../Component';
import { type Directive } from '../../Directive/directives_parser';
import type { PluginInterface } from './PluginInterface';
interface ElementLoadingDirectives {
element: HTMLElement | SVGElement;
Expand Down
2 changes: 1 addition & 1 deletion src/LiveComponent/assets/dist/HookManager.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ComponentHookName, ComponentHookCallback } from './Component';
import type { ComponentHookCallback, ComponentHookName } from './Component';
export default class {
private hooks;
register<T extends string | ComponentHookName = ComponentHookName>(hookName: T, callback: ComponentHookCallback<T>): void;
Expand Down
2 changes: 1 addition & 1 deletion src/LiveComponent/assets/dist/dom_utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type Component from './Component';
import type ValueStore from './Component/ValueStore';
import { type Directive } from './Directive/directives_parser';
import type Component from './Component';
export declare function getValueFromElement(element: HTMLElement, valueStore: ValueStore): string | string[] | null | boolean;
export declare function setValueOnElement(element: HTMLElement, value: any): void;
export declare function getAllModelDirectiveFromElements(element: HTMLElement): Directive[];
Expand Down
2 changes: 1 addition & 1 deletion src/LiveComponent/assets/dist/live_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Controller } from '@hotwired/stimulus';
import Component from './Component';
import { type BackendInterface } from './Backend/Backend';
import Component from './Component';
export { Component };
export { getComponent } from './ComponentRegistry';
export interface LiveEvent extends CustomEvent {
Expand Down
Loading
Loading