CLAUDE.md@by-language/typescriptA

CLAUDE.md@by-language/typescript from overseastelegramaliterateperson865/awesome-claude-md is a CLAUDE.md file: the standing instructions Claude Code reads in that repo.

Install it, pinned
mdr add overseastelegramaliterateperson865/awesome-claude-md/by-language/typescript/CLAUDE.md@git:20260320.fcf2609

Pins git:20260320.fcf2609 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
CLAUDE.md file
Repository
overseastelegramaliterateperson865/awesome-claude-md
Path
by-language/typescript/CLAUDE.md
Versions recorded
1
Latest version
git:20260320.fcf2609, committed Mar 20, 2026
Size
2,216 bytes
Repository stars
3
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file 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

The exact contents, by fingerprint
mdr add overseastelegramaliterateperson865/awesome-claude-md/by-language/typescript/CLAUDE.md@sha256:cc9446bc0fd48aa1

The line at the top of this page pins the label git:20260320.fcf2609, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_utp4b7bwrahaecju.svg)](https://markdownregistry.com/a/art_utp4b7bwrahaecju)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Mar 20, 2026.

versioncommittedcommitsizeaudit
git:20260320.fcf2609 latest2026-03-20 fcf2609 2,216 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

overseastelegramaliterateperson865/awesome-claude-md · 3 stars · license MIT · pushed 2026-10-14 · 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 AI assistant 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.

Guides: what a CLAUDE.md file is · keeping AGENTS.md and CLAUDE.md in sync · which agent file does what.

More from overseastelegramaliterateperson865/awesome-claude-md

CLAUDE.md@by-framework/fastapi CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/fastapi/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars
CLAUDE.md@by-framework/nextjs CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/nextjs/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars
CLAUDE.md@by-framework/react CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/react/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars
CLAUDE.md@by-framework/spring-boot CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/spring-boot/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars
CLAUDE.md@by-framework/svelte CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/svelte/CLAUDE.md
git:20260405.ab9f266 · audit B · 3 stars
CLAUDE.md@by-framework/tauri CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/tauri/CLAUDE.md
git:20260320.fcf2609 · audit A · 3 stars
CLAUDE.md@by-framework/uni-app CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/uni-app/CLAUDE.md
git:20260320.fcf2609 · audit B · 3 stars
CLAUDE.md@by-framework/vue-nuxt CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/vue-nuxt/CLAUDE.md
git:20260320.fcf2609 · audit B · 3 stars
CLAUDE.md@by-language/go CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-language/go/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars
CLAUDE.md@by-language/java CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-language/java/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars
CLAUDE.md@by-language/python CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-language/python/CLAUDE.md
git:20260320.fcf2609 · audit A · 3 stars
CLAUDE.md@by-language/rust CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-language/rust/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars

Every file in overseastelegramaliterateperson865/awesome-claude-md

Browse by kind, by grade A, or by owner.