Middle Earth TypeScript baseline guidelines (compiler, modules, best practices)
Apply this rule whenever work touches:
**/*.ts**/*.tsxtsconfig.base.json: strict true, verbatimModuleSyntax, noUnusedLocals/Parameters.@middle-earth/libs/publishable/*); do not import via relative ../../...any or unsafe casts; favor precise types and narrowing.src/index.ts). Avoid deep imports into internal files.*.constants.ts, *.helpers.ts, *.types.ts.Result-like patterns or typed errors. Do not swallow errors; add context.type-fest utility types where possible.PyTorch深度学习模式与最佳实践,用于构建稳健、高效且可复现的训练流程、模型架构和数据加载。