Skip to content

Commit c15c884

Browse files
committed
refactor: Explicitly import node:process
1 parent 4406dcb commit c15c884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/verifyCommit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import fs from 'node:fs'
2+
import process from 'node:process'
23

34
const msg = fs.readFileSync('.git/COMMIT_EDITMSG', 'utf-8').trim()
45

@@ -9,7 +10,6 @@ if (!commitRE.test(msg)) {
910
if (!mergeRe.test(msg)) {
1011
console.log('git commit unpass')
1112
console.error('git commit error, needs title(scope): desc')
12-
// eslint-disable-next-line node/prefer-global/process
1313
process.exit(1)
1414
}
1515
}

0 commit comments

Comments
 (0)