Skip to content

Commit b679319

Browse files
authored
Merge branch 'main' into copilot/add-lint-workflow
2 parents 3ef2cfd + c516679 commit b679319

4 files changed

Lines changed: 197 additions & 191 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# CHANGELOG
22

3-
## 2026-04-21
4-
5-
- 新增 GitHub Actions `lint` 工作流(`.github/workflows/lint.yml`):
6-
-`push``main/master`)与 `pull_request` 触发,统一执行 `pnpm install --frozen-lockfile``pnpm lint`
7-
- 工作流增加 `permissions: contents: read` 最小权限配置,降低默认令牌权限暴露面。
8-
- 通过 CI 自动校验代码风格,减少未被本地发现的 lint 问题进入主分支。
9-
103
## 2026-04-15
114

125
- 兼容 TypeScript 6.0.2 编译配置:

eslint.config.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ const __dirname = path.dirname(__filename);
88

99
export default defineConfig([{
1010
extends: [...nextCoreWebVitals],
11-
}]);
11+
rules: {
12+
"react-hooks/set-state-in-effect": "off",
13+
"react-hooks/refs": "off",
14+
"react-hooks/preserve-manual-memoization": "off",
15+
"react-hooks/static-components": "off",
16+
"react-hooks/purity": "off",
17+
},
18+
}]);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@types/ws": "^8.18.1",
3838
"drizzle-kit": "^0.31.10",
3939
"eslint": "^9",
40-
"eslint-config-next": "16.2.2",
40+
"eslint-config-next": "16.2.4",
4141
"postcss": "^8.5.10",
4242
"tailwindcss": "^4.2.2",
4343
"typescript": "^6.0.3"

0 commit comments

Comments
 (0)