From 16dc9d7b251d386b49b3e47c3753b345a379aa6f Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sat, 20 Apr 2024 19:52:57 -0500 Subject: [PATCH] refactor ~ fix `npx biome lint src` complaints (useNodejsImportProtocol) --- src/lib/XDGAppPaths.ts | 2 +- src/mod.deno.ts | 2 +- src/platform-adapters/deno.deno.ts | 2 +- src/platform-adapters/node.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/XDGAppPaths.ts b/src/lib/XDGAppPaths.ts index e6cf032..48d2be5 100644 --- a/src/lib/XDGAppPaths.ts +++ b/src/lib/XDGAppPaths.ts @@ -3,7 +3,7 @@ /* eslint-env es6, node */ // 'use strict'; -import { Platform } from '../platform-adapters/_base.js'; +import type { Platform } from '../platform-adapters/_base.js'; // XDG references // # ref: @@ diff --git a/src/mod.deno.ts b/src/mod.deno.ts index a048ff3..f18a538 100644 --- a/src/mod.deno.ts +++ b/src/mod.deno.ts @@ -6,7 +6,7 @@ import { Adapt } from '../dist/esm/lib/XDGAppPaths.js'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore -import { DirOptions, Options, XDGAppPaths } from '../dist/types/mod.d.ts'; +import type { DirOptions, Options, XDGAppPaths } from '../dist/types/mod.d.ts'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore diff --git a/src/platform-adapters/deno.deno.ts b/src/platform-adapters/deno.deno.ts index e68aa7a..799fc70 100644 --- a/src/platform-adapters/deno.deno.ts +++ b/src/platform-adapters/deno.deno.ts @@ -11,7 +11,7 @@ import xdg from 'https://deno.land/x/xdg@v10.5.0/src/mod.deno.ts'; /* eslint-disable @typescript-eslint/ban-ts-comment */ // @ts-ignore // deno-type import -import { Platform } from './_base.ts'; +import type { Platform } from './_base.ts'; // create a local reference to refer to `Deno` (for better linting without need for multiple `// @ts-ignore` directives) // @ts-ignore // Deno alias to suppress other false-positive TS warnings diff --git a/src/platform-adapters/node.ts b/src/platform-adapters/node.ts index ecf6166..8727459 100644 --- a/src/platform-adapters/node.ts +++ b/src/platform-adapters/node.ts @@ -4,7 +4,7 @@ import * as path from 'path'; import xdg from 'xdg-portable'; -import { Platform } from './_base.js'; +import type { Platform } from './_base.js'; export const adapter: Platform.Adapter = { atImportPermissions: { env: true, read: true },