From c46d7175c0b1269d4f8a333aa73eca4e2b4cc409 Mon Sep 17 00:00:00 2001 From: zichun Date: Thu, 7 May 2026 17:45:55 +0800 Subject: [PATCH] chore(frontend): add lint script (tsc --noEmit) for pre-push hook --- .obsidian/workspace.json | 82 ++++++++++++++++++++++++++++++++++++++++++++++------------------------------------ frontend/package.json | 1 + 2 files changed, 47 insertions(+), 36 deletions(-) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 528f847..16bb161 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -179,41 +179,51 @@ }, "active": "75e85cb517113c51", "lastOpenFiles": [ - "docs/10-验收检查清单.md", - "docs/05-API接口契约.md", - "docs/02-开发计划.md", - "sql/migrations/V1__initial_schema.sql", - "docs/03-数据库设计文档.md", - "scripts/test.sh", - "scripts/setup-test-db.sh", - "sql/migrations", - "sql", - "scripts", - "docs/09-项目目录结构.md", - "docs/07-环境配置.md", - "docs/06-UI交互规范.md", - "docs/01-需求清单/MOD-模块管理/REQ-MOD-004.md", - "docs/01-需求清单/MOD-模块管理/REQ-MOD-003.md", - "docs/01-需求清单/MOD-模块管理/_module.md", - "docs/01-需求清单/MOD-模块管理/REQ-MOD-002.md", - "docs/01-需求清单/MOD-模块管理/REQ-MOD-001.md", - "docs/01-需求清单/MOD-模块管理", - "docs/01-需求清单/USR-用户管理/_module.md", - "docs/01-需求清单/USR-用户管理/REQ-USR-004.md", - "docs/01-需求清单/USR-用户管理/REQ-USR-003.md", - "docs/01-需求清单/USR-用户管理/REQ-USR-002.md", - "docs/01-需求清单/USR-用户管理/REQ-USR-001.md", - "docs/01-需求清单/USR-用户管理", - "CLAUDE.md", - "docs/01-需求清单/index.md", - "docs/08-模块任务管理.md", - "docs/04-技术规范.md", - "docs/01-需求清单", - "docs", - "docs/superpowers/plans/2026-04-21-REQ-SYS-001.md", - "docs/superpowers/module-reports/module_sys-cross-module.md", - "docs/01-需求清单/SYS-系统管理.md", - "docs/01-需求清单/README.md", - "docs/superpowers/reviews/2026-04-21-REQ-SYS-001.md" + "backend/target/surefire/surefirebooter-20260430195247431_3.jar", + "backend/target/surefire/surefire_0-20260430195247431_2tmp", + "backend/target/surefire/surefire-20260430195247431_1tmp", + "backend/target/surefire", + "backend/target/surefire/surefirebooter-20260430195125577_3.jar", + "backend/target/surefire/surefire_0-20260430195125577_2tmp", + "backend/target/surefire/surefire-20260430195125577_1tmp", + "sql/migrations/V2__bool_columns_to_bit.sql", + "frontend/dist/assets/index-C0VJAYdp.js", + "frontend/dist/assets/index-Bml_u6eA.js", + "frontend/dist/assets/index-DYC1LGAT.js", + "frontend/node_modules/antd/README.md", + "frontend/node_modules/@ant-design/icons/README.md", + "frontend/node_modules/@ant-design/icons/docs/demo/use-iconfontcn.md", + "frontend/node_modules/@ant-design/icons/docs/demo/two-tone.md", + "frontend/node_modules/@ant-design/icons/docs/demo/tooltip.md", + "frontend/node_modules/@ant-design/icons/docs/demo/simple.md", + "frontend/node_modules/@ant-design/icons/docs/demo/root-class.md", + "frontend/node_modules/@ant-design/icons/docs/demo/loadModules.md", + "frontend/node_modules/@ant-design/icons/docs/demo/custom-icon.md", + "frontend/node_modules/@ant-design/icons/docs/demo/basic.md", + "frontend/node_modules/@ant-design/icons/docs/demo/ant-design-twotone-demo.md", + "frontend/node_modules/@ant-design/icons/docs/demo/all-icons.md", + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/zoom-out.svg", + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/zoom-in.svg", + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/zhihu.svg", + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/yuque.svg", + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/youtube.svg", + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/yahoo.svg", + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/x.svg", + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/woman.svg", + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/windows.svg", + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/wifi.svg", + "frontend/node_modules/@ant-design/icons-svg/ReadMe.md", + "frontend/node_modules/rc-drawer/README.md", + "frontend/node_modules/@reduxjs/toolkit/README.md", + "frontend/node_modules/dayjs/README.md", + "frontend/node_modules/dayjs/CHANGELOG.md", + "frontend/node_modules/react-redux/README.md", + "frontend/node_modules/react-redux/LICENSE.md", + "frontend/node_modules/axios/README.md", + "frontend/node_modules/axios/MIGRATION_GUIDE.md", + "frontend/node_modules/axios/CHANGELOG.md", + "frontend/node_modules/@ant-design/colors/README.md", + "frontend/node_modules/axios/lib/helpers/README.md", + "frontend/node_modules/axios/lib/env/README.md" ] } \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index 0885bae..b99e423 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "vite", "build": "tsc -b && vite build", + "lint": "tsc --noEmit", "preview": "vite preview" }, "dependencies": { -- libgit2 0.22.2