Angular Typescript Typescript Coding Style

为 TypeScript 文件强制执行代码风格和最佳实践。

liaosw97 Updated

File contents

  • 代码应遵守 .eslintrc.json.prettierrc.editorconfig 文件中定义的规则。
  • 每行代码不应超过 80 个字符。
  • 优先使用位于 libs/smart-ngrx/src/common/for-next.function.tsforNext 函数,而不是 for(let i;i < length;i++)forEachfor(x of y)
  • 函数和方法的参数不应超过 4 个。
  • 函数的可执行行数不应超过 50 行。

liaosw97/awesome-rules-skills/tree/main/plugins/angular/skills/angular-typescript-typescript-coding-style commit 76b1a839be

Frequently asked questions

npx skillmds@latest add liaosw97/angular-typescript-typescript-coding-style