fix: 修复 ESLint 代码质量问题

- 修复正则表达式中不必要的转义字符
- 使用对象解构优化代码风格
- 修复未使用变量的命名规范
- 确保所有修改文件通过 ESLint 检查

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
iRubbish
2025-08-14 14:14:01 +08:00
parent d2bcb8ef5e
commit 2b77fdc06c
5 changed files with 9 additions and 9 deletions

View File

@@ -271,8 +271,8 @@ class Application {
}
if (!version) {
try {
const packageJson = require('../package.json')
version = packageJson.version
const { version: pkgVersion } = require('../package.json')
version = pkgVersion
} catch (error) {
version = '1.0.0'
}