Skip to content

Commit 028cef4

Browse files
committed
fixed lint error
1 parent 3a23b2b commit 028cef4

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "treeex",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "CLI tool that analyzes directory structure and outputs a JSON tree",
55
"module": "index.ts",
66
"type": "module",

src/cli.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Command } from "commander";
21
import { access } from "node:fs/promises";
32
import { resolve } from "node:path";
3+
import { Command } from "commander";
44

55
import CONFIG from "@/config";
66
import { buildTree } from "@/tree";
@@ -13,7 +13,7 @@ function parseDepth(value: string): number | "inf" {
1313
const num = parseInt(value, 10);
1414
if (Number.isNaN(num) || num < 0) {
1515
console.error(
16-
`Error: Invalid depth value "${value}". Must be a positive number or "inf".`
16+
`Error: Invalid depth value "${value}". Must be a positive number or "inf".`,
1717
);
1818
process.exit(1);
1919
}
@@ -33,19 +33,19 @@ export async function main() {
3333
.version(
3434
`TreeEx v${CONFIG.APP.VERSION}`,
3535
"-v, --version",
36-
"Show version number"
36+
"Show version number",
3737
)
3838
.argument("[path]", "Path to analyze", ".")
3939
.option(
4040
"-d, --depth <level>",
4141
`Maximum depth level (use "inf" for unlimited)`,
42-
String(CONFIG.DEFAULT_VALUES.MAX_DEPTH)
42+
String(CONFIG.DEFAULT_VALUES.MAX_DEPTH),
4343
)
4444
.option(
4545
"-i, --ignore <pattern>",
4646
"Additional glob pattern to ignore (can be used multiple times)",
4747
collectIgnorePatterns,
48-
[]
48+
[],
4949
)
5050
.option("--no-default-ignore", "Disable default ignore patterns")
5151
.addHelpText("after", CONFIG.ARGS.HELP_TEXT);
@@ -60,7 +60,7 @@ export async function main() {
6060
await access(targetPath);
6161
} catch {
6262
console.error(
63-
`Error: Path "${targetPath}" does not exist or is not accessible.`
63+
`Error: Path "${targetPath}" does not exist or is not accessible.`,
6464
);
6565
process.exit(1);
6666
}

src/tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Glob } from "bun";
21
import { readdir, stat } from "node:fs/promises";
32
import { basename, join } from "node:path";
3+
import { Glob } from "bun";
44

55
import CONFIG from "@/config";
66
import type {

0 commit comments

Comments
 (0)