- 代码应遵守
.eslintrc.json、.prettierrc和.editorconfig文件中定义的规则。 - 每行字符数不应超过 80 个。
- 优先使用
libs/smart-ngrx/src/common/for-next.function.ts中的forNext函数,而不是for(let i;i < length;i++)、forEach或for(x of y)。 - 函数和方法的参数不应超过 4 个。
- 函数的执行行数不应超过 50 行。
Angular TS Guide Typescript Coding Style
强制执行 TypeScript 文件的代码风格和最佳实践。
Angular TS Guide Typescript Coding Style by liaosw97 · 3862d98
npx skillmds@latest add liaosw97/angular-ts-guide-typescript-coding-style File contents
---name: angular-ts-guide-typescript-coding-styledescription: 强制执行 TypeScript 文件的代码风格和最佳实践。---- 代码应遵守 `.eslintrc.json`、`.prettierrc` 和 `.editorconfig` 文件中定义的规则。- 每行字符数不应超过 80 个。- 优先使用 `libs/smart-ngrx/src/common/for-next.function.ts` 中的 `forNext` 函数,而不是 `for(let i;i < length;i++)`、`forEach` 或 `for(x of y)`。- 函数和方法的参数不应超过 4 个。- 函数的执行行数不应超过 50 行。
liaosw97/awesome-rules-skills/tree/main/plugins/angular/skills/angular-ts-guide-typescript-coding-style commit 3862d98a63
Frequently asked questions
Run npx skillmds@latest add liaosw97/angular-ts-guide-typescript-coding-style in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
强制执行 TypeScript 文件的代码风格和最佳实践。 It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
liaosw97 (@liaosw97) published this skill. Their other Agent Skills are listed on their SkillMD profile.