Skip to content

Commit

Permalink
Style(web): Apply import sorting ESLint rule #DS-1101
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed Jun 11, 2024
1 parent de331b3 commit 1aaac3a
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/web/config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const path = require('path');
const { babel } = require('@rollup/plugin-babel');
const { nodeResolve } = require('@rollup/plugin-node-resolve');
const replace = require('@rollup/plugin-replace');
const { terser } = require('rollup-plugin-terser');
const typescript = require('@rollup/plugin-typescript');
const { terser } = require('rollup-plugin-terser');

const BUNDLE = process.env.BUNDLE === 'true';
const ESM = process.env.ESM === 'true';
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/js/Toast.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { CSSProperties } from 'react';
import BaseComponent from './BaseComponent';
import { warning } from './common/utilities';
import {
ATTRIBUTE_ARIA_EXPANDED,
ATTRIBUTE_DATA_DISMISS,
Expand All @@ -14,9 +15,8 @@ import {
CLASS_NAME_VISIBLE,
DEFAULT_TOAST_AUTO_CLOSE_INTERVAL,
} from './constants';
import { enableDismissTrigger, enableToggleTrigger, executeAfterTransition, SpiritConfig } from './utils';
import { EventHandler, SelectorEngine } from './dom';
import { warning } from './common/utilities';
import { enableDismissTrigger, enableToggleTrigger, executeAfterTransition, SpiritConfig } from './utils';

const NAME = 'toast';
const DATA_KEY = `${NAME}`;
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/js/__tests__/BaseComponent.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import BaseComponent from '../BaseComponent';
import { clearFixture, getFixture } from '../../../tests/helpers/fixture';
import BaseComponent from '../BaseComponent';
import EventHandler from '../dom/EventHandler';

class DummyClass extends BaseComponent {
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/js/__tests__/Collapse.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { clearFixture, getFixture } from '../../../tests/helpers/fixture';
import EventHandler from '../dom/EventHandler';
import Collapse from '../Collapse';
import { CLASS_NAME_OPEN, CLASS_NAME_TRANSITIONING } from '../constants';
import EventHandler from '../dom/EventHandler';

describe('Collapse', () => {
let fixtureEl: Element;
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/js/__tests__/Modal.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Modal from '../Modal';
import EventHandler from '../dom/EventHandler';
import { clearFixture, getFixture } from '../../../tests/helpers/fixture';
import EventHandler from '../dom/EventHandler';
import Modal from '../Modal';

describe('Modal', () => {
let fixtureEl: Element;
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/js/__tests__/Offcanvas.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Offcanvas from '../Offcanvas';
import EventHandler from '../dom/EventHandler';
import { clearFixture, getFixture } from '../../../tests/helpers/fixture';
import EventHandler from '../dom/EventHandler';
import Offcanvas from '../Offcanvas';

describe('Offcanvas', () => {
let fixtureEl: HTMLElement;
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/js/__tests__/Password.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Password from '../Password';
import { clearFixture, getFixture } from '../../../tests/helpers/fixture';
import Password from '../Password';

describe('Password', () => {
let fixtureEl: Element;
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/js/__tests__/Toast.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { clearFixture, getFixture } from '../../../tests/helpers/fixture';
import Toast, { PROPERTY_NAME_SLOWEST_TRANSITION } from '../Toast';
import {
ATTRIBUTE_ARIA_EXPANDED,
ATTRIBUTE_DATA_TARGET,
Expand All @@ -8,6 +7,7 @@ import {
CLASS_NAME_VISIBLE,
} from '../constants';
import EventHandler from '../dom/EventHandler';
import Toast, { PROPERTY_NAME_SLOWEST_TRANSITION } from '../Toast';

const testId = 'toast-test';

Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/js/__tests__/Tooltip.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-undefined */
import Tooltip from '../Tooltip';
import EventHandler from '../dom/EventHandler';
import { clearFixture, getFixture, createEvent, noop } from '../../../tests/helpers/fixture';
import EventHandler from '../dom/EventHandler';
import Tooltip from '../Tooltip';

describe('Tooltip', () => {
let fixtureEl: Element;
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/js/dom/__tests__/EventHandler.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import EventHandler from '../EventHandler';
import { clearFixture, getFixture } from '../../../../tests/helpers/fixture';
import EventHandler from '../EventHandler';

describe('EventHandler', () => {
let fixtureEl: Element;
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/js/dom/__tests__/InstanceMap.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import InstanceMap from '../InstanceMap';
import { getFixture, clearFixture } from '../../../../tests/helpers/fixture';
import InstanceMap from '../InstanceMap';

describe('InstanceMap', () => {
const TEST_KEY = 'spirit.test';
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/js/dom/__tests__/SelectorEngine.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import SelectorEngine from '../SelectorEngine';
import { getFixture, clearFixture } from '../../../../tests/helpers/fixture';
import SelectorEngine from '../SelectorEngine';

describe('SelectorEngine', () => {
let fixtureEl: Element;
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/js/index.umd.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import AutoResize from './AutoResize';
import BaseComponent from './BaseComponent';
import Collapse from './Collapse';
import * as constants from './constants';
import * as dom from './dom';
import Dropdown from './Dropdown';
import FileUploader from './FileUploader';
import Modal from './Modal';
Expand All @@ -10,8 +12,6 @@ import ScrollView from './ScrollView';
import Tabs from './Tabs';
import Toast from './Toast';
import Tooltip from './Tooltip';
import * as constants from './constants';
import * as dom from './dom';
import * as utils from './utils';

export default {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { clearFixture, createEvent, getFixture } from '../../../../tests/helpers/fixture';
import { enableToggleTrigger } from '../ComponentFunctions';
import BaseComponent from '../../BaseComponent';
import { enableToggleTrigger } from '../ComponentFunctions';

/* eslint-disable class-methods-use-this */
class DummyClass2 extends BaseComponent {
Expand Down
4 changes: 2 additions & 2 deletions packages/web/tests/scss.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* @jest-environment node */

import { sync } from 'glob';
import { resolve } from 'path';
import { runSass } from 'sass-true';
import { pathToFileURL } from 'url';
import { sync } from 'glob';
import { runSass } from 'sass-true';

const importers = [
// Make @tokens work
Expand Down

0 comments on commit 1aaac3a

Please sign in to comment.