refactor: Explicitly import `node:process`
This commit is contained in:
parent
4406dcb94a
commit
c15c884053
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue