style: format codebase files

This commit is contained in:
Misaka
2026-03-21 09:34:44 +08:00
parent 2b4a09dabe
commit 0e77479955
4 changed files with 9 additions and 10 deletions

View File

@@ -81,9 +81,7 @@ function validateUpdateConfig(configPath) {
function hasConflictMarker(filePath) {
const content = fs.readFileSync(filePath, 'utf-8')
return (
content.includes('<<<<<<<') || content.includes('=======') || content.includes('>>>>>>>')
)
return content.includes('<<<<<<<') || content.includes('=======') || content.includes('>>>>>>>')
}
function validateVersionFiles(version) {
@@ -99,7 +97,10 @@ function validateVersionFiles(version) {
const rootPackage = packageLock.packages && packageLock.packages['']
if (rootPackage && rootPackage.version) {
assert(rootPackage.version === version, 'package-lock root package version does not match package.json')
assert(
rootPackage.version === version,
'package-lock root package version does not match package.json'
)
}
}