Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ jobs:
run: npm run test

- name: Lint
# 仓库既有代码存在 21 个存量 lint error(配置加载原就崩溃,从未跑通过),
# 修复属于业务代码改造,列入后续计划;此处先启用 lint 并完整记录结果,
# 不阻塞 CI,也不假装 lint 已全绿。
continue-on-error: true
# 硬门禁:存量 lint 问题已清零(含 0 warnings,--max-warnings 0),
# lint 成为与 build/test 同级的前端质量门禁。
run: npm run lint
4 changes: 3 additions & 1 deletion frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ module.exports = {
rules: {
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react-refresh/only-export-components": "error"
// allowConstantExport 放行 cva 变体常量(badge/button)与只读常量导出(AgentModeLabel),
// 这是 shadcn/ui 组件结构的官方推荐配置,常量不参与 fast refresh 失效问题。
"react-refresh/only-export-components": ["error", { "allowConstantExport": true }]
}
};
141 changes: 0 additions & 141 deletions frontend/@/components/ui/alert-dialog.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions frontend/@/components/ui/badge.tsx

This file was deleted.

56 changes: 0 additions & 56 deletions frontend/@/components/ui/button.tsx

This file was deleted.

79 changes: 0 additions & 79 deletions frontend/@/components/ui/card.tsx

This file was deleted.

Loading
Loading