Skip to content

Commit 9ae419e

Browse files
committed
chore: Apply natural import order for JS used by biome
1 parent 56cef50 commit 9ae419e

File tree

60 files changed

+120
-120
lines changed

Some content is hidden

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

60 files changed

+120
-120
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/src/Component/UnsyncedInputsTracker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ElementDriver } from './ElementDriver';
21
import { elementBelongsToThisComponent } from '../dom_utils';
2+
import type { ElementDriver } from './ElementDriver';
33
import type Component from './index';
44

55
export default class {

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import type { BackendAction, BackendInterface } from '../Backend/Backend';
2-
import ValueStore from './ValueStore';
3-
import { normalizeModelName } from '../string_utils';
42
import type BackendRequest from '../Backend/BackendRequest';
3+
import BackendResponse from '../Backend/BackendResponse';
4+
import { findComponents, registerComponent, unregisterComponent } from '../ComponentRegistry';
5+
import HookManager from '../HookManager';
6+
import ExternalMutationTracker from '../Rendering/ExternalMutationTracker';
57
import { elementBelongsToThisComponent, getValueFromElement, htmlToElement } from '../dom_utils';
68
import { executeMorphdom } from '../morphdom';
7-
import UnsyncedInputsTracker from './UnsyncedInputsTracker';
9+
import { normalizeModelName } from '../string_utils';
810
import type { ElementDriver } from './ElementDriver';
9-
import HookManager from '../HookManager';
11+
import UnsyncedInputsTracker from './UnsyncedInputsTracker';
12+
import ValueStore from './ValueStore';
1013
import type { PluginInterface } from './plugins/PluginInterface';
11-
import BackendResponse from '../Backend/BackendResponse';
12-
import ExternalMutationTracker from '../Rendering/ExternalMutationTracker';
13-
import { findComponents, registerComponent, unregisterComponent } from '../ComponentRegistry';
1414

1515
declare const Turbo: any;
1616

src/LiveComponent/assets/src/Component/plugins/ChildComponentPlugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import type Component from '../../Component';
2-
import type { PluginInterface } from './PluginInterface';
31
import type { ChildrenFingerprints } from '../../Backend/Backend';
2+
import type Component from '../../Component';
3+
import { findChildren, findParent } from '../../ComponentRegistry';
44
import getModelBinding, { type ModelBinding } from '../../Directive/get_model_binding';
55
import { getAllModelDirectiveFromElements } from '../../dom_utils';
6-
import { findChildren, findParent } from '../../ComponentRegistry';
6+
import type { PluginInterface } from './PluginInterface';
77

88
/**
99
* Handles all interactions for child components of a component.

src/LiveComponent/assets/src/Component/plugins/LazyPlugin.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

44
export default class implements PluginInterface {
55
private intersectionObserver: IntersectionObserver | null = null;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import type BackendRequest from '../../Backend/BackendRequest';
2+
import type Component from '../../Component';
13
import { type Directive, type DirectiveModifier, parseDirectives } from '../../Directive/directives_parser';
24
import { elementBelongsToThisComponent } from '../../dom_utils';
35
import { combineSpacedArray } from '../../string_utils';
4-
import type BackendRequest from '../../Backend/BackendRequest';
5-
import type Component from '../../Component';
66
import type { PluginInterface } from './PluginInterface';
77

88
interface ElementLoadingDirectives {

0 commit comments

Comments
 (0)