refactor: Explicitly import `node:process`

This commit is contained in:
CharleeWa 2023-12-27 14:26:22 +08:00
parent 4406dcb94a
commit c15c884053
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import fs from 'node:fs'
import process from 'node:process'
const msg = fs.readFileSync('.git/COMMIT_EDITMSG', 'utf-8').trim()
@ -9,7 +10,6 @@ if (!commitRE.test(msg)) {
if (!mergeRe.test(msg)) {
console.log('git commit unpass')
console.error('git commit error, needs title(scope): desc')
// eslint-disable-next-line node/prefer-global/process
process.exit(1)
}
}