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.