aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-03 10:45:08 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-03 10:45:08 -0500
commit083b4749139213c6fefe80166d73f54604a85267 (patch)
tree046ee751868d35edc6f6b0a33903546f8e78d1a7
parentc563e5bfa5f4bded8901dccf2d589f89356574c9 (diff)
Fix some import orderings
-rw-r--r--dev/bin/build.js4
-rw-r--r--ext/js/background/offscreen-proxy.js2
-rw-r--r--ext/js/language/dictionary-importer.js2
-rw-r--r--test/database.test.js2
-rw-r--r--test/deinflector.test.js2
-rw-r--r--test/dom-text-scanner.test.js2
6 files changed, 7 insertions, 7 deletions
diff --git a/dev/bin/build.js b/dev/bin/build.js
index 47c08f3c..deb82618 100644
--- a/dev/bin/build.js
+++ b/dev/bin/build.js
@@ -19,10 +19,10 @@
import assert from 'assert';
import childProcess from 'child_process';
import fs from 'fs';
-import path from 'path';
-import readline from 'readline';
import JSZip from 'jszip';
import {fileURLToPath} from 'node:url';
+import path from 'path';
+import readline from 'readline';
import {buildLibs} from '../build-libs.js';
import {ManifestUtil} from '../manifest-util.js';
import {getAllFiles, getArgs, testMain} from '../util.js';
diff --git a/ext/js/background/offscreen-proxy.js b/ext/js/background/offscreen-proxy.js
index 757d78d5..7b504855 100644
--- a/ext/js/background/offscreen-proxy.js
+++ b/ext/js/background/offscreen-proxy.js
@@ -17,8 +17,8 @@
*/
import {isObject} from '../core.js';
-import {ArrayBufferUtil} from '../data/sandbox/array-buffer-util.js';
import {ExtensionError} from '../core/extension-error.js';
+import {ArrayBufferUtil} from '../data/sandbox/array-buffer-util.js';
export class OffscreenProxy {
constructor() {
diff --git a/ext/js/language/dictionary-importer.js b/ext/js/language/dictionary-importer.js
index 115e0726..08fcf86b 100644
--- a/ext/js/language/dictionary-importer.js
+++ b/ext/js/language/dictionary-importer.js
@@ -25,8 +25,8 @@ import {
configure
} from '../../lib/zip.js';
import {stringReverse} from '../core.js';
-import {MediaUtil} from '../media/media-util.js';
import {ExtensionError} from '../core/extension-error.js';
+import {MediaUtil} from '../media/media-util.js';
const ajvSchemas = /** @type {import('dictionary-importer').CompiledSchemaValidators} */ (/** @type {unknown} */ (ajvSchemas0));
const BlobWriter = /** @type {typeof import('@zip.js/zip.js').BlobWriter} */ (/** @type {unknown} */ (BlobWriter0));
diff --git a/test/database.test.js b/test/database.test.js
index 30854d55..80871f95 100644
--- a/test/database.test.js
+++ b/test/database.test.js
@@ -17,8 +17,8 @@
*/
import {IDBFactory, IDBKeyRange} from 'fake-indexeddb';
-import path from 'path';
import {fileURLToPath} from 'node:url';
+import path from 'path';
import {beforeEach, describe, expect, test, vi} from 'vitest';
import {createDictionaryArchive} from '../dev/util.js';
import {DictionaryDatabase} from '../ext/js/language/dictionary-database.js';
diff --git a/test/deinflector.test.js b/test/deinflector.test.js
index a69f8e56..bd538428 100644
--- a/test/deinflector.test.js
+++ b/test/deinflector.test.js
@@ -17,10 +17,10 @@
*/
import fs from 'fs';
+import {fileURLToPath} from 'node:url';
import path from 'path';
import {describe, expect, test} from 'vitest';
import {Deinflector} from '../ext/js/language/deinflector.js';
-import {fileURLToPath} from 'node:url';
const dirname = path.dirname(fileURLToPath(import.meta.url));
diff --git a/test/dom-text-scanner.test.js b/test/dom-text-scanner.test.js
index 30aec33e..f6a7410a 100644
--- a/test/dom-text-scanner.test.js
+++ b/test/dom-text-scanner.test.js
@@ -18,8 +18,8 @@
import fs from 'fs';
import {JSDOM} from 'jsdom';
-import path from 'path';
import {fileURLToPath} from 'node:url';
+import path from 'path';
import {expect, test} from 'vitest';
import {DOMTextScanner} from '../ext/js/dom/dom-text-scanner.js';