CLAUDE.md@by-language/typescript claudeA
CLAUDE.md@by-language/typescript is agent-read markdown (claude) from overseastelegramaliterateperson865/awesome-claude-md.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# CLAUDE.md - TypeScript 项目规范
## 语言与编译
- 使用 TypeScript strict 模式,`tsconfig.json` 中 `"strict": true` 必须开启
- 禁止使用 `any`,用 `unknown` 替代后通过类型守卫收窄;确实无法避免时用 `// eslint-disable-next-line @typescript-eslint/no-explicit-any` 并附注释说明原因
- 使用 ESM 模块系统,`"type": "module"` 写在 `package.json` 中,`tsconfig.json` 设置 `"module": "ESNext"`, `"moduleResolution": "bundler"`
- 目标产物 `"target": "ES2022"`,充分利用 `structuredClone`、`Array.at()` 等现代 API
## 代码风格与 Lint
- 优先使用 Biome (`biome.json`) 做格式化和 lint;若项目用 ESLint,则配合 `@typescript-eslint/recommended-type-checked`
- 缩进 2 空格,行尾无分号,单引号,尾逗号 `all`
- 文件命名:`kebab-case.ts`,类型定义文件 `*.types.ts`,常量文件 `*.constants.ts`
## 导入规范
- 导入顺序:node 内置模块 > 第三方库 > 项目内部模块 > 相对路径模块,组间空行分隔
- 使用 `import type { Foo }` 语法导入纯类型,避免运行时引入
- 路径别名统一用 `@/` 指向 `src/`,在 `tsconfig.json` 的 `paths` 中配置
## 类型编写
- 优先用 `interface` 描述对象结构,用 `type` 处理联合类型、交叉类型、工具类型
- 泛型参数命名有意义:`TItem` 而非 `T`,`TResponse` 而非 `R`
- 对外暴露的函数必须显式标注返回类型,内部函数可依赖推断
- 枚举用 `as const` 对象 + `typeof` 替代 `enum`,避免运行时开销
## 测试
- 测试框架使用 Vitest,配置文件 `vitest.config.ts`
- 测试文件放在 `__tests__/` 目录或与源文件同级命名为 `*.test.ts`
- 运行测试:`pnpm test`;运行单个文件:`pnpm test src/utils/__tests__/foo.test.ts`
…Read the whole file at its exact version.
How to install
mdr add overseastelegramaliterateperson865/awesome-claude-md/by-language/typescript/CLAUDE.md@git:20260320.fcf2609mdr add overseastelegramaliterateperson865/awesome-claude-md/by-language/typescript/CLAUDE.md@sha256:cc9446bc0fd48aa1Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_utp4b7bwrahaecju)
1 badge views in 30 days
Versions
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (2216 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
overseastelegramaliterateperson865/awesome-claude-md · 3 stars · license MIT · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_utp4b7bwrahaecju GET https://markdownregistry.com/api/v1/resolve?ref=overseastelegramaliterateperson865/awesome-claude-md/by-language/typescript/CLAUDE.md GET https://markdownregistry.com/api/v1/blob/cc9446bc0fd48aa1757f7ff02cfdfa5747f48373d78e58399d0d0918faf34237
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from overseastelegramaliterateperson865/awesome-claude-md
Every file in overseastelegramaliterateperson865/awesome-claude-md