- 代码应遵守
.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 Typescript Typescript Coding Style
为 TypeScript 文件强制执行代码风格和最佳实践。
Angular Typescript Typescript Coding Style by liaosw97 · 76b1a83
npx skillmds@latest add liaosw97/angular-typescript-typescript-coding-style File contents
---name: angular-typescript-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-typescript-typescript-coding-style commit 76b1a839be
Frequently asked questions
Run npx skillmds@latest add liaosw97/angular-typescript-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.