- shadcn/ui 标准化:废弃纸感令牌,统一 bg-background/text-foreground 等 - Tailwind v4 + @theme inline,移除 tailwind.config.js - React 19 use() + Suspense 流式渲染,首屏骨架秒出 - 三级错误边界:Route → Section → Widget 层层兜底 - 错误上报:useErrorReport → sendBeacon → /api/log mock 端点 - 三层安全边界:L1 角色门禁 / L2 权限点门禁 / L3 数据范围 - 权限位图 base36 压缩:67 权限点 → ~14 字符,JWT 体积减少 ≥ 99% - notify 统一 Toast 封装,禁止业务直接 import sonner - PluginBoundary 替代 PluginLoader(错误边界 + Suspense + Skeleton 三件套) 验证:typecheck 0 错误 / lint 0 错误 / build 6 路由生成成功
28 lines
659 B
YAML
28 lines
659 B
YAML
packages:
|
|
- 'services/*'
|
|
- 'apps/*'
|
|
- 'packages/*'
|
|
- 'scripts/*'
|
|
|
|
# pnpm 11+ build scripts 白名单(从 package.json 的 pnpm.onlyBuiltDependencies 迁移)
|
|
allowBuilds:
|
|
'@apollo/protobufjs': set this to true or false
|
|
'@module-federation/nextjs-mf': true
|
|
'@nestjs/core': true
|
|
'@sentry/cli': true
|
|
'@swc/core': true
|
|
bcrypt: true
|
|
better-sqlite3: true
|
|
cpu-features: true
|
|
esbuild: true
|
|
msw: true
|
|
protobufjs: true
|
|
sharp: set this to true or false
|
|
ssh2: true
|
|
tsx: true
|
|
|
|
# 强制统一 React 类型版本(避免 18.x 与 19.x 共存导致类型冲突)
|
|
overrides:
|
|
'@types/react': '^19.0.0'
|
|
'@types/react-dom': '^19.0.0'
|