Skip to content

Commit 7237b0b

Browse files
committed
chore: lint
1 parent c4159e5 commit 7237b0b

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"build": "unbuild",
2222
"dev": "vitest",
2323
"lint": "eslint --ext .ts,.js src test && prettier -c src test",
24+
"lint:fix": "eslint --ext .ts,.js src test --fix && prettier -w src test",
2425
"release": "pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags",
2526
"test": "pnpm lint && vitest run"
2627
},

src/resolve.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { existsSync, realpathSync } from "node:fs";
22
import { pathToFileURL } from "node:url";
33
import { joinURL } from "ufo";
4-
import { isAbsolute, join, normalize } from "pathe";
4+
import { isAbsolute, normalize } from "pathe";
55
import { moduleResolve } from "import-meta-resolve";
66
import { PackageJson, readPackageJSON } from "pkg-types";
77
import { fileURLToPath, normalizeid } from "./utils";
@@ -208,6 +208,7 @@ function _findSubpath(subpath: string, exports: PackageJson["exports"]) {
208208

209209
const flattenedExports = _flattenExports(exports);
210210
const [foundPath] =
211+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
211212
flattenedExports.find(([_, resolved]) => resolved === subpath) || [];
212213

213214
return foundPath;

src/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { fileURLToPath as _fileURLToPath } from "node:url";
22
import { promises as fsp } from "node:fs";
33
import { normalizeSlash, BUILTIN_MODULES } from "./_utils";
4-
import { StaticImport, TypeImport } from "./analyze";
54

65
export function fileURLToPath(id: string): string {
76
if (typeof id === "string" && !id.startsWith("file://")) {

test/utils.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { fileURLToPath } from "node:url";
21
import { describe, it, expect } from "vitest";
32

43
import {

0 commit comments

Comments
 (0)