Skip to content

Commit 82900f6

Browse files
committed
chore: wip
1 parent 8f89b98 commit 82900f6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { execSync } from 'node:child_process'
22
import fs from 'node:fs'
33
import path from 'node:path'
4-
import process from 'node:process'
54

65
/**
76
* Find the Git repository root directory
@@ -11,6 +10,7 @@ function findGitRoot(): string | null {
1110
const gitRoot = execSync('git rev-parse --show-toplevel', { encoding: 'utf8' }).trim()
1211
return gitRoot
1312
}
13+
// eslint-disable-next-line unused-imports/no-unused-vars
1414
catch (_error) {
1515
return null
1616
}

test/cli.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ describe('gitlint CLI', () => {
2323
try {
2424
fs.rmSync(tempDir, { recursive: true, force: true })
2525
}
26+
// eslint-disable-next-line unused-imports/no-unused-vars
2627
catch (_error) {
2728
// Ignore errors during cleanup
2829
}
@@ -68,6 +69,7 @@ describe('gitlint CLI', () => {
6869
// If we get here, it means the command succeeded (exit code 0)
6970
// This is expected for a valid message
7071
}
72+
// eslint-disable-next-line unused-imports/no-unused-vars
7173
catch (_error) {
7274
// Should not throw for a valid message
7375
expect('No error').toBe('Error occurred')

test/gitlint.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it, spyOn } from 'bun:test'
1+
import { describe, expect, it } from 'bun:test'
22
import { lintCommitMessage, parseCommitMessage, rules } from '../src'
33

44
describe('gitlint', () => {

0 commit comments

Comments
 (0)