Skip to content

Commit 0dcdc49

Browse files
committed
chore: Apply natural import order for JS to synchronise the code base with Biome and its configuration
1 parent 56cef50 commit 0dcdc49

File tree

75 files changed

+1659
-1659
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1659
-1659
lines changed

src/Autocomplete/assets/src/controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import TomSelect from 'tom-select';
33
import type { TPluginHash } from 'tom-select/dist/types/contrib/microplugin';
44
import type {
55
RecursivePartial,
6-
TomSettings,
7-
TomTemplates,
86
TomLoadCallback,
97
TomOption,
8+
TomSettings,
9+
TomTemplates,
1010
} from 'tom-select/dist/types/types';
1111
import type { escape_html } from 'tom-select/dist/types/utils';
1212

src/Autocomplete/assets/test/controller.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99

1010
import { Application } from '@hotwired/stimulus';
1111
import { getByTestId, waitFor } from '@testing-library/dom';
12+
import userEvent from '@testing-library/user-event';
13+
import type TomSelect from 'tom-select';
14+
import { vi } from 'vitest';
15+
import createFetchMock from 'vitest-fetch-mock';
1216
import AutocompleteController, {
1317
type AutocompleteConnectOptions,
1418
type AutocompletePreConnectOptions,
1519
} from '../src/controller';
16-
import userEvent from '@testing-library/user-event';
17-
import type TomSelect from 'tom-select';
18-
import createFetchMock from 'vitest-fetch-mock';
19-
import { vi } from 'vitest';
2020

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

src/Cropperjs/assets/test/controller.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
*/
99

1010
import { Application, Controller } from '@hotwired/stimulus';
11-
import { getByTestId, waitFor } from '@testing-library/dom';
1211
import { clearDOM, mountDOM } from '@symfony/stimulus-testing';
12+
import { getByTestId, waitFor } from '@testing-library/dom';
1313
import CropperjsController from '../src/controller';
1414

1515
let cropper: Cropper | null = null;

src/Dropzone/assets/test/controller.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
*/
99

1010
import { Application, Controller } from '@hotwired/stimulus';
11+
import { clearDOM, mountDOM } from '@symfony/stimulus-testing';
1112
import { getByTestId, waitFor } from '@testing-library/dom';
1213
import user from '@testing-library/user-event';
13-
import { clearDOM, mountDOM } from '@symfony/stimulus-testing';
1414
import DropzoneController from '../src/controller';
1515

1616
// Controller used to check the actual controller was properly booted

src/LazyImage/assets/test/controller.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
*/
99

1010
import { Application, Controller } from '@hotwired/stimulus';
11-
import { getByTestId, waitFor } from '@testing-library/dom';
1211
import { clearDOM, mountDOM } from '@symfony/stimulus-testing';
12+
import { getByTestId, waitFor } from '@testing-library/dom';
1313
import LazyImageController from '../src/controller';
1414

1515
// Controller used to check the actual controller was properly booted

src/LiveComponent/assets/dist/Component/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { BackendInterface } from '../Backend/Backend';
2-
import ValueStore from './ValueStore';
32
import type BackendRequest from '../Backend/BackendRequest';
3+
import BackendResponse from '../Backend/BackendResponse';
44
import type { ElementDriver } from './ElementDriver';
5+
import ValueStore from './ValueStore';
56
import type { PluginInterface } from './plugins/PluginInterface';
6-
import BackendResponse from '../Backend/BackendResponse';
77
type MaybePromise<T = void> = T | Promise<T>;
88
export type ComponentHooks = {
99
connect: (component: Component) => MaybePromise;

src/LiveComponent/assets/dist/Component/plugins/LazyPlugin.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { PluginInterface } from './PluginInterface';
21
import type Component from '../index';
2+
import type { PluginInterface } from './PluginInterface';
33
export default class implements PluginInterface {
44
private intersectionObserver;
55
attachToComponent(component: Component): void;

src/LiveComponent/assets/dist/Component/plugins/LoadingPlugin.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { type Directive } from '../../Directive/directives_parser';
21
import type BackendRequest from '../../Backend/BackendRequest';
32
import type Component from '../../Component';
3+
import { type Directive } from '../../Directive/directives_parser';
44
import type { PluginInterface } from './PluginInterface';
55
interface ElementLoadingDirectives {
66
element: HTMLElement | SVGElement;

src/LiveComponent/assets/dist/HookManager.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ComponentHookName, ComponentHookCallback } from './Component';
1+
import type { ComponentHookCallback, ComponentHookName } from './Component';
22
export default class {
33
private hooks;
44
register<T extends string | ComponentHookName = ComponentHookName>(hookName: T, callback: ComponentHookCallback<T>): void;

src/LiveComponent/assets/dist/dom_utils.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type Component from './Component';
12
import type ValueStore from './Component/ValueStore';
23
import { type Directive } from './Directive/directives_parser';
3-
import type Component from './Component';
44
export declare function getValueFromElement(element: HTMLElement, valueStore: ValueStore): string | string[] | null | boolean;
55
export declare function setValueOnElement(element: HTMLElement, value: any): void;
66
export declare function getAllModelDirectiveFromElements(element: HTMLElement): Directive[];

src/LiveComponent/assets/dist/live_controller.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Controller } from '@hotwired/stimulus';
2-
import Component from './Component';
32
import { type BackendInterface } from './Backend/Backend';
3+
import Component from './Component';
44
export { Component };
55
export { getComponent } from './ComponentRegistry';
66
export interface LiveEvent extends CustomEvent {

0 commit comments

Comments
 (0)