Commit c46d7175c0b1269d4f8a333aa73eca4e2b4cc409

Authored by zichun
1 parent 4416c52f

chore(frontend): add lint script (tsc --noEmit) for pre-push hook

.obsidian/workspace.json
@@ -179,41 +179,51 @@ @@ -179,41 +179,51 @@
179 }, 179 },
180 "active": "75e85cb517113c51", 180 "active": "75e85cb517113c51",
181 "lastOpenFiles": [ 181 "lastOpenFiles": [
182 - "docs/10-验收检查清单.md",  
183 - "docs/05-API接口契约.md",  
184 - "docs/02-开发计划.md",  
185 - "sql/migrations/V1__initial_schema.sql",  
186 - "docs/03-数据库设计文档.md",  
187 - "scripts/test.sh",  
188 - "scripts/setup-test-db.sh",  
189 - "sql/migrations",  
190 - "sql",  
191 - "scripts",  
192 - "docs/09-项目目录结构.md",  
193 - "docs/07-环境配置.md",  
194 - "docs/06-UI交互规范.md",  
195 - "docs/01-需求清单/MOD-模块管理/REQ-MOD-004.md",  
196 - "docs/01-需求清单/MOD-模块管理/REQ-MOD-003.md",  
197 - "docs/01-需求清单/MOD-模块管理/_module.md",  
198 - "docs/01-需求清单/MOD-模块管理/REQ-MOD-002.md",  
199 - "docs/01-需求清单/MOD-模块管理/REQ-MOD-001.md",  
200 - "docs/01-需求清单/MOD-模块管理",  
201 - "docs/01-需求清单/USR-用户管理/_module.md",  
202 - "docs/01-需求清单/USR-用户管理/REQ-USR-004.md",  
203 - "docs/01-需求清单/USR-用户管理/REQ-USR-003.md",  
204 - "docs/01-需求清单/USR-用户管理/REQ-USR-002.md",  
205 - "docs/01-需求清单/USR-用户管理/REQ-USR-001.md",  
206 - "docs/01-需求清单/USR-用户管理",  
207 - "CLAUDE.md",  
208 - "docs/01-需求清单/index.md",  
209 - "docs/08-模块任务管理.md",  
210 - "docs/04-技术规范.md",  
211 - "docs/01-需求清单",  
212 - "docs",  
213 - "docs/superpowers/plans/2026-04-21-REQ-SYS-001.md",  
214 - "docs/superpowers/module-reports/module_sys-cross-module.md",  
215 - "docs/01-需求清单/SYS-系统管理.md",  
216 - "docs/01-需求清单/README.md",  
217 - "docs/superpowers/reviews/2026-04-21-REQ-SYS-001.md" 182 + "backend/target/surefire/surefirebooter-20260430195247431_3.jar",
  183 + "backend/target/surefire/surefire_0-20260430195247431_2tmp",
  184 + "backend/target/surefire/surefire-20260430195247431_1tmp",
  185 + "backend/target/surefire",
  186 + "backend/target/surefire/surefirebooter-20260430195125577_3.jar",
  187 + "backend/target/surefire/surefire_0-20260430195125577_2tmp",
  188 + "backend/target/surefire/surefire-20260430195125577_1tmp",
  189 + "sql/migrations/V2__bool_columns_to_bit.sql",
  190 + "frontend/dist/assets/index-C0VJAYdp.js",
  191 + "frontend/dist/assets/index-Bml_u6eA.js",
  192 + "frontend/dist/assets/index-DYC1LGAT.js",
  193 + "frontend/node_modules/antd/README.md",
  194 + "frontend/node_modules/@ant-design/icons/README.md",
  195 + "frontend/node_modules/@ant-design/icons/docs/demo/use-iconfontcn.md",
  196 + "frontend/node_modules/@ant-design/icons/docs/demo/two-tone.md",
  197 + "frontend/node_modules/@ant-design/icons/docs/demo/tooltip.md",
  198 + "frontend/node_modules/@ant-design/icons/docs/demo/simple.md",
  199 + "frontend/node_modules/@ant-design/icons/docs/demo/root-class.md",
  200 + "frontend/node_modules/@ant-design/icons/docs/demo/loadModules.md",
  201 + "frontend/node_modules/@ant-design/icons/docs/demo/custom-icon.md",
  202 + "frontend/node_modules/@ant-design/icons/docs/demo/basic.md",
  203 + "frontend/node_modules/@ant-design/icons/docs/demo/ant-design-twotone-demo.md",
  204 + "frontend/node_modules/@ant-design/icons/docs/demo/all-icons.md",
  205 + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/zoom-out.svg",
  206 + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/zoom-in.svg",
  207 + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/zhihu.svg",
  208 + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/yuque.svg",
  209 + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/youtube.svg",
  210 + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/yahoo.svg",
  211 + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/x.svg",
  212 + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/woman.svg",
  213 + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/windows.svg",
  214 + "frontend/node_modules/@ant-design/icons-svg/inline-svg/outlined/wifi.svg",
  215 + "frontend/node_modules/@ant-design/icons-svg/ReadMe.md",
  216 + "frontend/node_modules/rc-drawer/README.md",
  217 + "frontend/node_modules/@reduxjs/toolkit/README.md",
  218 + "frontend/node_modules/dayjs/README.md",
  219 + "frontend/node_modules/dayjs/CHANGELOG.md",
  220 + "frontend/node_modules/react-redux/README.md",
  221 + "frontend/node_modules/react-redux/LICENSE.md",
  222 + "frontend/node_modules/axios/README.md",
  223 + "frontend/node_modules/axios/MIGRATION_GUIDE.md",
  224 + "frontend/node_modules/axios/CHANGELOG.md",
  225 + "frontend/node_modules/@ant-design/colors/README.md",
  226 + "frontend/node_modules/axios/lib/helpers/README.md",
  227 + "frontend/node_modules/axios/lib/env/README.md"
218 ] 228 ]
219 } 229 }
220 \ No newline at end of file 230 \ No newline at end of file
frontend/package.json
@@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
6 "scripts": { 6 "scripts": {
7 "dev": "vite", 7 "dev": "vite",
8 "build": "tsc -b && vite build", 8 "build": "tsc -b && vite build",
  9 + "lint": "tsc --noEmit",
9 "preview": "vite preview" 10 "preview": "vite preview"
10 }, 11 },
11 "dependencies": { 12 "dependencies": {