Skip to content

Commit

Permalink
refactor ~ fix npx biome lint src complaints (useNodejsImportProtocol)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Apr 21, 2024
1 parent 5b6bff2 commit 16dc9d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/XDGAppPaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: <https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html> @@ <https://archive.is/aAhtw>
Expand Down
2 changes: 1 addition & 1 deletion src/mod.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/platform-adapters/deno.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/platform-adapters/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 16dc9d7

Please sign in to comment.