Skip to content

Commit dad292b

Browse files
committed
chore: 升级依赖并更新 ESLint 配置
- 升级 Hono 到 4.9.10 - 升级 lru-cache 到 11.2.2 - 升级 pino 到 10.0.0 - 升级 ESLint 到 9.37.0 并迁移到新配置格式 - 更新相关依赖包版本
1 parent 3b7ed40 commit dad292b

File tree

6 files changed

+5204
-1285
lines changed

6 files changed

+5204
-1285
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 15 deletions
This file was deleted.

eslint.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import path from 'node:path'
2+
import { fileURLToPath } from 'node:url'
3+
import { FlatCompat } from '@eslint/eslintrc'
4+
5+
const __filename = fileURLToPath(import.meta.url)
6+
const __dirname = path.dirname(__filename)
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
recommendedConfig: false,
11+
allConfig: false
12+
})
13+
14+
export default [
15+
...compat.config({
16+
extends: ['standard'],
17+
env: {
18+
browser: true,
19+
es2021: true
20+
},
21+
parserOptions: {
22+
ecmaVersion: 2021,
23+
sourceType: 'module'
24+
},
25+
rules: {}
26+
})
27+
]

0 commit comments

Comments
 (0)